rbalamohan commented on code in PR #262:
URL: https://github.com/apache/tez/pull/262#discussion_r1070957234
##########
tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/shuffle/Fetcher.java:
##########
@@ -563,7 +564,7 @@ private HostFetchResult
setupConnection(Collection<InputAttemptIdentifier> attem
protected void setupConnectionInternal(String host,
Collection<InputAttemptIdentifier> attempts)
throws IOException, InterruptedException {
- input = httpConnection.getInputStream();
+ input = new MeasuredDataInputStream(httpConnection.getInputStream());
Review Comment:
-1 for making it the default. Note that System.currentTimeMillis may turn
out to be expensive when number of calls are higher. Especially in cloud nodes
where hypervisors are involved.
Would suggest to make it optional.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]