Skip to content

Commit 3f4e213

Browse files
Responded to feedback from Andrew Ross, fixed typo, spelling, added shudownNow() and Thread.currentThread().interrupt()
Signed-off-by: Chengwu Shi <chengwu.shi@netapp.com>
1 parent a9f7cdf commit 3f4e213

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55

66
## [Unreleased 2.x]
77
### Added
8-
- Added support for Azure Managed Identity in repository-azure ([#12423](https://github.com/opensearch-project/OpenSearch/issues/12423))
8+
- Add support for Azure Managed Identity in repository-azure ([#12423](https://github.com/opensearch-project/OpenSearch/issues/12423))
99
- Add useCompoundFile index setting ([#13478](https://github.com/opensearch-project/OpenSearch/pull/13478))
1010

1111
### Dependencies

plugins/repository-azure/src/main/java/org/opensearch/repositories/azure/AzureStorageService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,11 @@ public void close() throws IOException {
336336
this.executor.shutdown();
337337
try {
338338
if (this.executor.awaitTermination(30, TimeUnit.SECONDS) == false) {
339-
logger.warning("The executor was not shutdown gracefuly with 30 seconds");
339+
this.executor.shutdownNow();
340+
logger.warning("The executor was not shutdown gracefully with 30 seconds");
340341
}
341342
} catch (final InterruptedException ex) {
343+
Thread.currentThread().interrupt();
342344
throw new IOException(ex);
343345
}
344346
}

0 commit comments

Comments
 (0)