CacheLoader bug, JIRA broken
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.
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.
Hello,
Do you have some code snippet somewhere? (to attach it to the bug)
Which JIRA project have you used?
Regards
Tug
@tgrall