Skip to content

Commit 6d65b2e

Browse files
CaideyipiJackieTien97
authored andcommitted
Pipe: Added close for tree session in WriteBackConnector (#15211)
(cherry picked from commit 7fe614c)
1 parent 7b0a2c2 commit 6d65b2e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/connector/protocol/writeback/WriteBackConnector.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ public void close() throws Exception {
305305
if (session != null) {
306306
SESSION_MANAGER.closeSession(session, COORDINATOR::cleanupQueryExecution);
307307
}
308+
if (treeSession != null) {
309+
SESSION_MANAGER.closeSession(treeSession, COORDINATOR::cleanupQueryExecution);
310+
}
308311
}
309312

310313
private TSStatus executeStatementForTableModel(Statement statement, String dataBaseName) {

0 commit comments

Comments
 (0)