private SyncIdentityInfo getCurrentSyncIdentityInfo() {
    final Long id = currentConnectionId.get();
    if (id != null) {
      return connectionIdToIdentityInfoMap.get(id);
    } else {
      return null;
    }
  }
Get current SyncIdentityInfo.

@return null if connection has been exited
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/legacy/IoTDBLegacyPipeReceiverAgent.java