private void addRTSGroup(RTSGroup rtsGroup) {
        if (rtsGroups.containsKey(rtsGroup.name())) {
            return;
        }
        rtsGroups.put(rtsGroup.name(), rtsGroup);
        startHandle(rtsGroup);

        int count = 0;
        for (RTSGroup rtsg : rtsGroups.values()) {
            if (!rtsg.hasUploaded()) {
                count++;
            }
        }
        if (count >= WarnRTSGroupSize) {
            logger.warn("Too many rts groups! [table: {}, rtsg valueCount: {}]", tableName, count);
        }
    }
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