Bug in SegmentReader causes infinite loop
-----------------------------------------
Key: NUTCH-502
URL: https://issues.apache.org/jira/browse/NUTCH-502
Project: Nutch
Issue Type: Bug
Reporter: Doğacan Güney
Assignee: Doğacan Güney
Priority: Minor
Fix For: 1.0.0
A small bug in SegmentReader.get() may lead to an infinite loop.
...
int cnt = 0;
do {
try {
Thread.sleep(5000);
} catch (Exception e) {};
it = threads.iterator();
while (it.hasNext()) {
if (((Thread)it.next()).isAlive()) cnt++;
}
if ((cnt > 0) && (LOG.isDebugEnabled())) {
LOG.debug("(" + cnt + " to retrieve)");
....
}
} while (cnt > 0);
If cnt ever becomes non-zero, SegmentReader gets stuck in that loop.
This bug is discovered by Ilya Vishnevsky.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers