@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ConsensusGroupStatistics that = (ConsensusGroupStatistics) o;
    return leaderId == that.leaderId;
  }
ConsensusGroupStatistics indicates the statistics of a consensus group.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/cache/consensus/ConsensusGroupStatistics.java