public boolean isSafeToExit() {
        if (state != State.CLOSE && state != State.STOP) {
            return false;
        }
        for (RTSGroup rtsg : rtsGroups.values()) {
            if (!rtsg.hasUploaded()) {
                return false;
            }
        }
        return true;
    }
Close this realtime table. Job is done.
This method only called before process exit.
indexr-segment/src/main/java/io/indexr/segment/rt/RealtimeTable.java