mirror of https://github.com/apache/cassandra
fix awaitTermination logic for streamExecutors
patch by Christopher Porter; reviewed by jbellis for CASSANDRA-4484
This commit is contained in:
parent
4a6d9888b4
commit
afb2c00e58
|
|
@ -644,7 +644,7 @@ public final class MessagingService implements MessagingServiceMBean
|
|||
|
||||
for (DebuggableThreadPoolExecutor e : streamExecutors.values())
|
||||
{
|
||||
if (e.awaitTermination(24, TimeUnit.HOURS))
|
||||
if (!e.awaitTermination(24, TimeUnit.HOURS))
|
||||
logger.error("Stream took more than 24H to complete; skipping");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue