default boolean takeSnapshot(File snapshotDir, String snapshotTmpId, String snapshotId) {
    return takeSnapshot(snapshotDir);
  }
Take a snapshot of current statemachine. Snapshot.log will be stored under snapshotDir, The
data of the snapshot will be stored under `data folder/snapshot/snapshotId`.

@param snapshotDir required storage dir
@param snapshotTmpId temporary id of the snapshot
@param snapshotId the id of the snapshot
@return true if snapshot is successfully taken
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/IStateMachine.java