Skip to content

Commit

Permalink
Fixing SessionStrategy's close method
Browse files Browse the repository at this point in the history
  • Loading branch information
YangYumings committed Dec 27, 2024
1 parent 882c89b commit ccff547
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ Status waitWriteTaskToFinishAndGetStatus() {

@Override
public void init() {
sessionManager.init();
sessionManager.open();
this.service = Executors.newSingleThreadExecutor();
}

Expand All @@ -470,9 +470,12 @@ public void cleanup() {

@Override
public void close() throws TsdbException {
if (sessionManager != null) {
sessionManager.close();
try {
if (sessionManager != null) {
sessionManager.close();
}
} finally {
service.shutdown();
}
service.shutdown();
}
}

0 comments on commit ccff547

Please sign in to comment.