private void verifyStitchedBlobReservedMetadataChunkId(String chunkId) throws RouterException {
      String reservedMetadataChunkIdStr = (reservedMetadataChunkId == null) ? null : reservedMetadataChunkId.getID();
      if (!Objects.equals(reservedMetadataChunkIdStr, chunkId)) {
        reservedMetadataChunkId = null;
        reservedMetadataIdMetrics.stitchedBlobMetadataIdMismatchCount.inc();
        throw new RouterException("Mismatch in metadata chunk ids of chunks in stitched operation.",
            RouterErrorCode.InvalidOrMismatchedStitchBlobReservedMetadataChunkId);
      }
    }
Verify that the reserved metadata chunk id matches the specified chunk id.
@param chunkId chunk id to be matched.
@throws RouterException In case of a mismatch.
ambry-router/src/main/java/com/github/ambry/router/PutOperation.java