YaCy-Bugtracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000241YaCy[All Projects] Generalpublic2013-05-17 12:522016-09-28 15:12
Reporterhermens 
Assigned To 
PrioritynormalSeveritymajorReproducibilityrandom
StatusnewResolutionopen 
ETAnone 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000241: Yacy hängt manchmal beim Shutdown wegen race condition
DescriptionDer Shutdown bleibt plötzlich hängen:

Letzte Zeilen im Log:

S 2013/05/17 03:55:50 SWITCHBOARD SWITCHBOARD SHUTDOWN STEP 2: sending termination signal to threaded indexing
I 2013/05/17 03:55:50 STACKCRAWL Flushing remaining 0 crawl stacker job entries.
I 2013/05/17 03:55:50 serverProcessor queue CrawlStacker: shutdown.
I 2013/05/17 03:55:50 STACKCRAWL Shutdown. waiting for remaining 0 crawl stacker job entries. please wait.
I 2013/05/17 03:55:50 STACKCRAWL Shutdown. Closing stackCrawl queue.
I 2013/05/17 03:55:50 serverProcessor putting poison pill in queue parseDocument, thread 0
S 2013/05/17 03:55:50 AbstractBlockingThread thread 'java.lang.reflect.Method.parseDocument.0' terminated.
I 2013/05/17 03:55:50 serverProcessor .. poison pill is in queue parseDocument, thread 0. awaiting termination
Steps To Reproduce1. Yacy starten
2. Etwas indizeren, crawlen oder ähnliches
3. Yacy herunterfahren
Additional InformationWährend in net.yacy.kelondro.workflow.WorkflowProcessor.shutdown() die poisonPill in die Queue geschoben werden, beenden die ersten Threads sofort und zählen this.executorRunning herunter, wodurch die Schleife:

for (int i = 0; i < this.executorRunning.get(); i++) {
[...]
}

zu früh abgebrochen wird. Wegen zu wenigen poisonPills bleiben Threads aktiv und der Shutdown bleibt hier hängen:

this.executor.awaitTermination(Long.MAX_VALUE, TimeUnit.MILLISECONDS);
TagsNo tags attached.
Attached Files

- Relationships
related to 0000689resolvedadministrator Shutdown never finishes 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-05-17 12:52 hermens New Issue
2016-09-28 15:12 BuBu Relationship added related to 0000689


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker