Details
Description
In method DFSStripedOutputStream#checkStreamerFailures, we have below codes:
Set<StripedDataStreamer> newFailed = checkStreamers(); if (newFailed.size() == 0) { return; } if (isNeedFlushAllPackets) { // for healthy streamers, wait till all of them have fetched the new block // and flushed out all the enqueued packets. flushAllInternals(); } // recheck failed streamers again after the flush newFailed = checkStreamers();
We should better move the re-check logic into if condition to reduce useless invocation.
Attachments
Issue Links
- links to