mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
better close logic for concurrent recovery streams
This commit is contained in:
parent
08ecd9d772
commit
79cb0eafc4
@ -85,6 +85,12 @@ public class RecoverySettings extends AbstractComponent {
|
||||
|
||||
public void close() {
|
||||
concurrentStreamPool.shutdown();
|
||||
try {
|
||||
concurrentStreamPool.awaitTermination(1, TimeUnit.SECONDS);
|
||||
} catch (InterruptedException e) {
|
||||
// that's fine...
|
||||
}
|
||||
concurrentStreamPool.shutdownNow();
|
||||
}
|
||||
|
||||
public ByteSizeValue fileChunkSize() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user