Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 9 additions & 1 deletion server/src/main/java/org/apache/iotdb/db/service/IoTDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,22 @@ private void initMManager() {

}

/**
* stop IoTDB's daemon service.
*/
@Override
public void stop() {
deactivate();
}

/**
* stop accept new requests.
* @throws Exception
*/
public void shutdown() throws Exception {
logger.info("Deactivating IoTDB...");
IoTDB.metaManager.clear();
//we can not clear the metadata manager before the compaction process really stops.
//IoTDB.metaManager.clear();
TracingManager.getInstance().close();
registerManager.shutdownAll();
PrimitiveArrayManager.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public static void stopDaemon() {
}
}

public static void shutdownDaemon() throws Exception {
private static void shutdownDaemon() throws Exception {
if (daemon != null) {
daemon.shutdown();
}
Expand All @@ -279,6 +279,7 @@ public static void reactiveDaemon() {
public static void restartDaemon() throws Exception {
shutdownDaemon();
stopDaemon();
IoTDB.metaManager.clear();
reactiveDaemon();
}

Expand Down