abstractdog commented on code in PR #262:
URL: https://github.com/apache/tez/pull/262#discussion_r1071047228
##########
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:
thanks for the input @rbalamohan, yes, absolutely, this is a
work-in-progress patch, I was thinking about making it configurable
too...working on that
I hope the basic idea makes sense to you, counting the time spent in
InputStream.read to reflect the actual time spent with network traffic
--
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]