-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-15202 Boost short circuit cache (rebase PR-1884) #2016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…massive reading performance by create few instances ShortCircuit caches instead of one. It helps avoid locks and lets CPU do job.
💔 -1 overall
This message was automatically generated. |
fixed codestyle
This is in continuation of #1884 |
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
|
||
public void runBlockReaderLocalTest(BlockReaderLocalTest test, | ||
boolean checksum, long readahead) throws IOException { | ||
boolean checksum, long readahead, int shortCircuitCachesNum) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of test code changes are not needed if you add an overriding method runBlockReaderLocalTest(BlockReaderLocalTest test, boolean checksum, long readahead) that calls runBlockReaderLocalTest(test, checksum, readahead, 1);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I fixed it. But below by link writes "Could not update commit status". Should I create new PR or it is enough?
refacted tests decoration
💔 -1 overall
This message was automatically generated. |
finished decoration of tests
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
No I think you're fine. You probably need to rebase the PR to use the new docker. But I'll merge this one. |
Added parameter dfs.client.short.circuit.num improving HDFS-client's massive reading performance by create few instances ShortCircuit caches instead of one. It helps avoid locks and lets CPU do job. (cherry picked from commit 86e6aa8)
(cherry picked from commit 2abcf77)
(cherry picked from commit 2abcf77) Conflicts: hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/ClientContext.java Change-Id: I257542e0efa18dd47212f240034af9520d88a934
Added parameter dfs.client.short.circuit.num improving HDFS-client's massive reading performance by create few instances ShortCircuit caches instead of one. It helps avoid locks and lets CPU do job.