public synchronized List<Batch> getPendingBatches() {
    return pendingBatches;
  }
Gets the first index that is not currently synchronized.
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/logdispatcher/SyncStatus.java