RetryingBlockFetcher is…FIXME
-
NettyBlockTransferServiceis requested to fetchBlocks (when maxIORetries is greater than0which it is by default) -
ExternalShuffleClientis requested to fetchBlocks (when maxIORetries is greater than0which it is by default)
RetryingBlockFetcher uses a BlockFetchStarter to createAndStart when requested to start and later initiateRetry.
RetryingBlockFetcher uses outstandingBlocksIds internal registry of outstanding block IDs to fetch that is initially the block IDs to fetch when created.
At initiateRetry, RetryingBlockFetcher prints out the following INFO message to the logs (with the number of outstandingBlocksIds):
Retrying fetch ([retryCount]/[maxRetries]) for [size] outstanding blocks after [retryWaitTime] msOn onBlockFetchSuccess and onBlockFetchFailure, RetryingBlockFetchListener removes the block ID from outstandingBlocksIds.
RetryingBlockFetcher uses a RetryingBlockFetchListener to remove block IDs from the outstandingBlocksIds internal registry.
RetryingBlockFetcher takes the following when created:
void start()start simply fetchAllOutstanding.
|
Note
|
|
synchronized void initiateRetry()initiateRetry…FIXME
|
Note
|
|
void fetchAllOutstanding()fetchAllOutstanding requests BlockFetchStarter to createAndStart for the outstandingBlocksIds.
|
Note
|
fetchAllOutstanding is used when RetryingBlockFetcher is requested to start and initiateRetry.
|
RetryingBlockFetchListener is a BlockFetchingListener that RetryingBlockFetcher uses to remove block IDs from the outstandingBlocksIds internal registry.
void onBlockFetchSuccess(String blockId, ManagedBuffer data)|
Note
|
onBlockFetchSuccess is part of BlockFetchingListener Contract to…FIXME.
|
onBlockFetchSuccess…FIXME
void onBlockFetchFailure(String blockId, Throwable exception)|
Note
|
onBlockFetchFailure is part of BlockFetchingListener Contract to…FIXME.
|
onBlockFetchFailure…FIXME