Fixes jenkins

This commit is contained in:
Sotr
2018-06-11 16:56:26 +08:00
parent 24d0c6a541
commit 0f00949e6f

View File

@@ -128,12 +128,12 @@ public class ParallelRegistry {
// Shutdown BLOCK and STANDALONE stage // Shutdown BLOCK and STANDALONE stage
STAGE_STANDALONE.shutdown(); STAGE_STANDALONE.shutdown();
STAGE_BLOCK.shutdown(); STAGE_BLOCK.shutdown();
STAGE_BLOCK.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS); STAGE_BLOCK.awaitTermination(10, TimeUnit.MINUTES);
STAGE_BLOCK_BASE.shutdown(); // This must after STAGE_BLOCK terminated STAGE_BLOCK_BASE.shutdown(); // This must after STAGE_BLOCK terminated
STAGE_BLOCK_BASE.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS); STAGE_BLOCK_BASE.awaitTermination(20, TimeUnit.MINUTES);
STAGE_STANDALONE.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS); // Behind the shutdown of BLOCK_BASE should faster STAGE_STANDALONE.awaitTermination(30, TimeUnit.MINUTES); // Behind the shutdown of BLOCK_BASE should faster
} }
} }