Revision 2715
Added by sgarg about 19 years ago
src/edu/ucsb/nceas/metacat/DBSAXHandler.java | ||
---|---|---|
528 | 528 |
xmlDocCheck.close(); |
529 | 529 |
// make sure the while loop will be ended in reseaonable time |
530 | 530 |
long stopTime = System.currentTimeMillis(); |
531 |
if ((stopTime - startTime) > INDEXDELAY) { throw new Exception( |
|
531 |
if ((stopTime - startTime) > INDEXDELAY) { |
|
532 |
logMetacat.warn("Couldn't find the docid for index build in " |
|
533 |
+ "reseaonable time!"); |
|
534 |
throw new Exception( |
|
532 | 535 |
"Couldn't find the docid for index build in " |
533 | 536 |
+ "reseaonable time!"); |
534 |
logMetacat.warn("Couldn't find the docid for index build in " |
|
535 |
+ "reseaonable time!"); |
|
536 | 537 |
} |
537 | 538 |
}//while |
538 | 539 |
} catch (Exception e) { |
Also available in: Unified diff
Fix for bug in the previous commit