void setIntermediateChunkSize(long intermediateChunkSize) throws RouterException {
      if (intermediateChunkSize <= 0 || intermediateChunkSize > routerConfig.routerMaxPutChunkSizeBytes) {
        throw new RouterException("Invalid intermediate chunk size: " + intermediateChunkSize,
            RouterErrorCode.InvalidPutArgument);
      }
      this.intermediateChunkSize = (int) intermediateChunkSize;
    }
Change the max chunk size option to support stitching chunks where the intermediate chunk sizes differ from
the current router chunking configuration. This setter is temporary and will be removed once a new metadata
blob format is introduced that supports intermediate chunks of arbitrary size.
@param intermediateChunkSize the chunk size for the intermediate (not last) data chunks listed in the metadata
                             blob.
@throws RouterException if the intermediate chunk size is invalid.
ambry-router/src/main/java/com/github/ambry/router/PutOperation.java