Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
import org.apache.fluss.server.zk.data.RemoteLogManifestHandle;
import org.apache.fluss.server.zk.data.TableAssignment;
import org.apache.fluss.server.zk.data.TableRegistration;
import org.apache.fluss.utils.FileUtils;
import org.apache.fluss.utils.clock.Clock;
import org.apache.fluss.utils.clock.SystemClock;

Expand Down Expand Up @@ -237,10 +238,6 @@ public void close() throws Exception {
rpcClient.close();
rpcClient = null;
}
if (tempDir != null) {
tempDir.delete();
tempDir = null;
}
for (TabletServer tabletServer : tabletServers.values()) {
tabletServer.close();
}
Expand All @@ -258,6 +255,10 @@ public void close() throws Exception {
zooKeeperServer.close();
zooKeeperServer = null;
}
if (tempDir != null) {
FileUtils.deleteDirectoryQuietly(tempDir);
tempDir = null;
}
}

/** Start a coordinator server. start a new one if no coordinator server exists. */
Expand Down