Skip to content

Commit

Permalink
fix(s3stream/storage): correct if condition on awaitTermination (#2137
Browse files Browse the repository at this point in the history
)

Signed-off-by: Ning Yu <[email protected]>
  • Loading branch information
Chillax-0v0 authored Nov 8, 2024
1 parent 37e1af5 commit fb5bce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3stream/src/main/java/com/automq/stream/s3/S3Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public void shutdown() {
deltaWAL.shutdownGracefully();
backgroundExecutor.shutdown();
try {
if (backgroundExecutor.awaitTermination(10, TimeUnit.SECONDS)) {
if (!backgroundExecutor.awaitTermination(10, TimeUnit.SECONDS)) {
LOGGER.warn("await backgroundExecutor timeout 10s");
}
} catch (InterruptedException e) {
Expand Down

0 comments on commit fb5bce8

Please sign in to comment.