Uh oh!
There was an error while loading. Please reload this page.
measured input stream - #262
Conversation
tez-yetus
commented
Jan 12, 2023
💔 -1 overall
This message was automatically generated. |
| protected void setupConnectionInternal(String host, Collection<InputAttemptIdentifier> attempts) | ||
| throws IOException, InterruptedException { | ||
| input = httpConnection.getInputStream(); | ||
| input = new MeasuredDataInputStream(httpConnection.getInputStream()); |
There was a problem hiding this 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.
There was a problem hiding this 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
There was a problem hiding this comment.
I didn't realize that it was WIP patch. sure, +1 on the idea.
No description provided.