HDFS-16587. Allow configuring the number of JournalNodeRPCServer Hand…#4339
HDFS-16587. Allow configuring the number of JournalNodeRPCServer Hand…#4339ayushtkn merged 1 commit intoapache:trunkfrom
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
ayushtkn
left a comment
There was a problem hiding this comment.
makes sense to me.
Please extend a test as well, if not direct can grep the log outputs & validate that only....
There was a problem hiding this comment.
Add some validation here for a valid value range, as in shouldn't be negative or so.
If it is an invalid entry, Add a warn log and use the default value.
Post that have a INFO log telling about the handler count...
There was a problem hiding this comment.
@ayushtkn Thanks for your comment, it helped me a lot. And the patch has been updated, please help me review it again. Thanks
|
🎊 +1 overall
This message was automatically generated. |
ayushtkn
left a comment
There was a problem hiding this comment.
Dropped minor comments, Jenkins has some checkstyle warnings as well. give a check.
Apart changes LGTM
There was a problem hiding this comment.
Assert. isn't required there is already a static import in the class.
Same for all the other statements
There was a problem hiding this comment.
can you change the variable name to handlerCount and the method to getHandlerCount()
There was a problem hiding this comment.
Change to
LOG.warn("Invalid value for: {} = {}, Should be > 0,"
+ " will use default value of: {}.",
DFS_JOURNALNODE_HANDLER_COUNT_KEY, confHandler,
DFS_JOURNALNODE_HANDLER_COUNT_DEFAULT);
|
Thanks @ayushtkn. The patch has been updated, please help me review it again. Thanks |
|
💔 -1 overall
This message was automatically generated. |
|
Seems some test failures, can you give a check |
|
checking, If the failed UTs is not related to the modification and will create a new PR to fix the failed UTs. |
@ayushtkn please help me review again. |
|
Merged. Thanx @ZanderXu for the contribution!!! |
|
Thanks @ayushtkn for your review. I will contribute some bugs and improvements encountered in our production to the trunk, and I will need your help to review them later. |
…lers (apache#4339). Contributed by ZanderXu. Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
Currently the number of JournalNodeRpc Handlers is hard-code 5, we need to support this parameter configurable.