public static boolean rejectWrite(TConsensusGroupType type) {
    return type == TConsensusGroupType.DataRegion && config.isReadOnly();
  }
Given raftGroupId, decrypt ConsensusGroupId out of it.
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/utils/Utils.java