Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

CacheLoader bug, JIRA broken

2 replies [Last post]
  • Login or register to post comments
Tue, 01/15/2013 - 09:34
jonathaz
Offline
Joined: 01/09/2013
Groups: None

I found a minor issue in spymemcached CacheLoader. I tried to create a bug in the JIRA system and got the following error:
Assignee: The default assignee does NOT have ASSIGNABLE permission OR Unassigned issues are turned off.

Here are the details for the bug I was trying to create:
Project: spymemcached Java Client
Issue Type: Bug
Summary: Thread.interrupt() of CacheLoader results in perpetual loop
Priority: Minor
Components: library
Affects Version/s: 2.8.4, 2.7.3
Description: I interrupted a Thread running CacheLoader.loadData(), and observe the behavior that it never finishes loadData(), but rather perpetually re-interrupts itself. I looked at the code and found the offending block in CacheLoader.push(), line 124. I believe it needs to break out of the loop.

Top
  • Login or register to post comments
Thu, 01/17/2013 - 02:03
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

Do you have some code snippet somewhere? (to attach it to the bug)

Which JIRA project have you used?

Regards

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Wed, 03/20/2013 - 15:24
jonathaz
Offline
Joined: 01/09/2013
Groups: None

This time it let me create the bug: SPY-114. I believe all that's necessary to fix it is a break after line 124 on CacheLoader.java. It might make sense to abort the rest of the loadData, either by checking the interrupted status of the thread or to let the InterruptedException progagate out of push and handle it in loadData.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker