关注 spark技术分享,
撸spark源码 玩spark最佳实践

RetryingBlockFetcher

RetryingBlockFetcher

RetryingBlockFetcher is…​FIXME

RetryingBlockFetcher is created and immediately started when:

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):

RetryingBlockFetcher uses a RetryingBlockFetchListener to remove block IDs from the outstandingBlocksIds internal registry.

Creating RetryingBlockFetcher Instance

RetryingBlockFetcher takes the following when created:

Starting RetryingBlockFetcher — start Method

start simply fetchAllOutstanding.

Note

start is used when:

initiateRetry Internal Method

initiateRetry…​FIXME

Note

initiateRetry is used when:

fetchAllOutstanding Internal Method

fetchAllOutstanding requests BlockFetchStarter to createAndStart for the outstandingBlocksIds.

Note
fetchAllOutstanding is used when RetryingBlockFetcher is requested to start and initiateRetry.

RetryingBlockFetchListener

RetryingBlockFetchListener is a BlockFetchingListener that RetryingBlockFetcher uses to remove block IDs from the outstandingBlocksIds internal registry.

onBlockFetchSuccess Method

Note
onBlockFetchSuccess is part of BlockFetchingListener Contract to…​FIXME.

onBlockFetchSuccess…​FIXME

onBlockFetchFailure Method

Note
onBlockFetchFailure is part of BlockFetchingListener Contract to…​FIXME.

onBlockFetchFailure…​FIXME

赞(0) 打赏
未经允许不得转载:spark技术分享 » RetryingBlockFetcher
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏