mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-07-12 02:27:14 +00:00
721e89ca10
Thread interruption and certain other exceptions can cause a toe thread to exit without informing the frontier that the current CrawlURI is finished. This causes the job to get permanently stuck in the STOPPING state. This change adds a section to the finally block that will finish any unfinished CrawlURI. We also move the continueCheck() call after setCurrentCuri() to ensure there's no window where InterruptedException can be thrown after the frontier returns the next CrawlURI but before it gets assigned to currentCuri. Fixes #420