mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
Call latch in a finally block
This commit is contained in:
parent
e24fac644a
commit
51745d7272
@ -119,9 +119,10 @@ public class AzureRepositoryF {
|
|||||||
IOUtils.close(node);
|
IOUtils.close(node);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new ElasticsearchException(e);
|
throw new ElasticsearchException(e);
|
||||||
}
|
} finally {
|
||||||
latch.countDown();
|
latch.countDown();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
node.start();
|
node.start();
|
||||||
latch.await();
|
latch.await();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user