Skip to content

Commit d9c4a75

Browse files
committed
[server] Close the DynamicConfigManager before closing the ZookeeperClient to prevent exceptions
1 parent 4cdc12c commit d9c4a75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fluss-server/src/main/java/org/apache/fluss/server/tablet/TabletServer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ CompletableFuture<Void> stopServices() {
382382
}
383383

384384
try {
385+
if (dynamicConfigManager != null) {
386+
dynamicConfigManager.close();
387+
}
388+
385389
if (zkClient != null) {
386390
zkClient.close();
387391
}
@@ -423,10 +427,6 @@ CompletableFuture<Void> stopServices() {
423427
authorizer.close();
424428
}
425429

426-
if (dynamicConfigManager != null) {
427-
dynamicConfigManager.close();
428-
}
429-
430430
if (lakeCatalogDynamicLoader != null) {
431431
lakeCatalogDynamicLoader.close();
432432
}

0 commit comments

Comments
 (0)