Skip to content

Commit

Permalink
Revert "Disable use DownloadCallback fetch big blocks"
Browse files Browse the repository at this point in the history
This reverts commit 9336c15.
  • Loading branch information
zsxwing committed Jun 29, 2017
1 parent 9336c15 commit bcae03f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ public void onSuccess(ByteBuffer response) {
// Immediately request all chunks -- we expect that the total size of the request is
// reasonable due to higher level chunking in [[ShuffleBlockFetcherIterator]].
for (int i = 0; i < streamHandle.numChunks; i++) {
client.fetchChunk(streamHandle.streamId, i, chunkCallback);
if (shuffleFiles != null) {
client.stream(OneForOneStreamManager.genStreamChunkId(streamHandle.streamId, i),
new DownloadCallback(shuffleFiles[i], i));
} else {
client.fetchChunk(streamHandle.streamId, i, chunkCallback);
}
}
} catch (Exception e) {
logger.error("Failed while starting block fetches after success", e);
Expand Down

0 comments on commit bcae03f

Please sign in to comment.