public void resolveOldestChunk(Exception exception) {
    ChunkData chunkData = chunksAwaitingResolution.poll();
    if (chunkData != null) {
      chunkData.resolveChunk(exception);
    }
  }
Resolves the oldest "checked-out" chunk and invokes the callback and future that accompanied the chunk. Once a
chunk is resolved, the data inside it is considered void. If no chunks have been "checked-out" yet, does nothing.
@param exception any {@link Exception} that occurred during the handling that needs to be notified.
ambry-commons/src/main/java/com/github/ambry/commons/ByteBufferAsyncWritableChannel.java