Closed GoogleCodeExporter closed 8 years ago
r797 | mgronber | 2008-05-16 15:21:07 -0700 (Fri, 16 May 2008) | 22 lines
Issue 89: Try to avoid calling Connector classes from an interrupted thread
Moved the check for thread state, changed to use isInterrupted() to preserve
state, added some logging and added a test for WorkQueueThread.
ChangeLog:
----------
* java/com/google/enterprise/connector/common/WorkQueue.java:
* java/com/google/enterprise/connector/scheduler/TraversalScheduler.java:
- Added extra logging.
* source/java/com/google/enterprise/connector/common/WorkQueueThread.java:
- Fixed problem where the thread would only exit if it was in the wait state.
* java/com/google/enterprise/connector/traversal/QueryTraverser.java:
- Move the test for Thread.interrupted() to a point before the
next document is retrieved rather than after.
- Added extra logging.
* javatests/com/google/enterprise/connector/common/WorkQueueThreadTest.java:
- Added
Original comment by mgron...@gmail.com
on 16 May 2008 at 10:22
Original comment by mgron...@gmail.com
on 19 Jun 2008 at 6:35
Original issue reported on code.google.com by
mgron...@gmail.com
on 12 May 2008 at 6:01Attachments: