@Override
    public Set<String> getAllBookedGroups() {
        Map<String, Set<String>> totalGroups =
                this.fileOffsetStorage.queryGroupTopicInfo(null);
        return new HashSet<>(totalGroups.keySet());
    }
Get in-memory and in zk group set

@return booked group in memory and in zk
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/offset/DefaultOffsetManager.java