HADOOP-18186. s3a prefetching to use SemaphoredDelegatingExecutor for submitting work#4796
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
Endpoint |
|
With When ran individually, |
|
@steveloughran i also tested the entire test suite by enabling prefatch. Tests in However, the failures don't seem relevant to the change on this PR. As per the test logic, it seems |
| @@ -776,7 +776,14 @@ private void initThreadPools(Configuration conf) { | |||
| executorCapacity = intOption(conf, | |||
| EXECUTOR_CAPACITY, DEFAULT_EXECUTOR_CAPACITY, 1); | |||
| if (this.prefetchEnabled) { | |||
There was a problem hiding this comment.
can you cut the this. from here and the line below. not something we do in the hadoop code except in constructors and setters
There was a problem hiding this comment.
sounds good, done
|
💔 -1 overall
This message was automatically generated. |
mehakmeet
left a comment
There was a problem hiding this comment.
+1 looks good, Only suggestion is maybe a test in prefetch IT to verify the duration for executor acquisition we do in SemaphoredDelegatingExecutor for input stream IOStats.
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
With |
|
Addressed review comments |
|
@steveloughran @mehakmeet could you please take another look? |
|
i'm letting mehakmeet review this |
mehakmeet
left a comment
There was a problem hiding this comment.
+1, just a small doubt on the assertion.
| } | ||
| // Verify that once stream is closed, all memory is freed | ||
| verifyStatisticGaugeValue(ioStats, StreamStatisticNames.STREAM_READ_ACTIVE_MEMORY_IN_USE, 0); | ||
| assertDurationRange(ioStats, StoreStatisticNames.ACTION_EXECUTOR_ACQUIRED, 0, 10); |
There was a problem hiding this comment.
This would pass for the duration of acquisition executor=0 as well. Think having an assertThat.isGreaterThan(0) should be fine as well.
|
🎊 +1 overall
This message was automatically generated. |
|
Tested against us-west-2 endpoint. |
|
@mehakmeet the PR is updated based on review comments |
… submitting work (apache#4796) Contributed by Viraj Jasani
… submitting work (#4796) Contributed by Viraj Jasani
… submitting work (#4796) Contributed by Viraj Jasani
… submitting work (#4796) Contributed by Viraj Jasani
… submitting work (#4796) Contributed by Viraj Jasani
No description provided.