docs: private void mergeExportSequenceNumbersToZK(JSONObject jsonObj, VoltLogger log) throws JSONException {
          JSONObject tableSequenceMap;
          if (jsonObj.has(EXPORT_SEQUENCE_NUMBER_ARR)) {
              tableSequenceMap = jsonObj.getJSONObject(EXPORT_SEQUENCE_NUMBER_ARR);
          } else {
              tableSequenceMap = new JSONObject();
              jsonObj.put(EXPORT_SEQUENCE_NUMBER_ARR, tableSequenceMap);
          }
  
          for (Map.Entry<String, Map<Integer, Pair<Long, Long>>> tableEntry : m_exportSequenceNumbers.entrySet()) {
              JSONObject sequenceNumbers;
              final String tableName = tableEntry.getKey();
              if (tableSequenceMap.has(tableName)) {
                  sequenceNumbers = tableSequenceMap.getJSONObject(tableName);
              } else {
                  sequenceNumbers = new JSONObject();
                  tableSequenceMap.put(tableName, sequenceNumbers);
              }
  
              for (Map.Entry<Integer, Pair<Long, Long>> partitionEntry : tableEntry.getValue().entrySet()) {
                  final Integer partitionId = partitionEntry.getKey();
                  final String partitionIdString = partitionId.toString();
                  final Long ackOffset = partitionEntry.getValue().getFirst();
                  final Long partitionSequenceNumber = partitionEntry.getValue().getSecond();
  
                  /*
                   * Check that the sequence number is the same everywhere and log if it isn't.
                   * Not going to crash because we are worried about poison pill transactions.
                   */
                  if (sequenceNumbers.has(partitionIdString)) {
                      JSONObject existingEntry = sequenceNumbers.getJSONObject(partitionIdString);
                      Long existingSequenceNumber = existingEntry.getLong("sequenceNumber");
                      if (!existingSequenceNumber.equals(partitionSequenceNumber)) {
                          log.debug("Found a mismatch in export sequence numbers of export table " + tableName +
                                  " while recording snapshot metadata for partition " + partitionId +
                                  ". This is expected only on replicated, write-to-file export streams (remote node reported " +
                                  existingSequenceNumber + " and the local node reported " + partitionSequenceNumber + ")");
                      }
                      existingEntry.put(partitionIdString, Math.max(existingSequenceNumber, partitionSequenceNumber));
  
                      Long existingAckOffset = existingEntry.getLong("ackOffset");
                      existingEntry.put("ackOffset", Math.max(ackOffset, existingAckOffset));
                  } else {
                      JSONObject newObj = new JSONObject();
                      newObj.put("sequenceNumber", partitionSequenceNumber);
                      newObj.put("ackOffset", ackOffset);
                      sequenceNumbers.put(partitionIdString, newObj);
                  }
              }
          }
      }