[
https://issues.apache.org/jira/browse/HDFS-16118?focusedWorklogId=620306&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-620306
]
ASF GitHub Bot logged work on HDFS-16118:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 08/Jul/21 02:05
Start Date: 08/Jul/21 02:05
Worklog Time Spent: 10m
Work Description: jianghuazhu commented on pull request #3186:
URL: https://github.com/apache/hadoop/pull/3186#issuecomment-876061665
Some unit tests failed and have nothing to do with this function.
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 620306)
Time Spent: 0.5h (was: 20m)
> Improve the number of handlers that initialize
> NameNodeRpcServer#clientRpcServer
> --------------------------------------------------------------------------------
>
> Key: HDFS-16118
> URL: https://issues.apache.org/jira/browse/HDFS-16118
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: JiangHua Zhu
> Assignee: JiangHua Zhu
> Priority: Major
> Labels: pull-request-available
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When initializing NameNodeRpcServer, if the value of
> dfs.namenode.lifeline.handler.count is set to be less than 0 (such as -1, of
> course, this is rare), when determining the number of lifeline RPC handlers,
> it will be based on dfs.namenode.handler .count * lifelineHandlerRatio is
> determined.
> The code can be found:
> int lifelineHandlerCount = conf.getInt(
> DFS_NAMENODE_LIFELINE_HANDLER_COUNT_KEY, 0);
> if (lifelineHandlerCount <= 0) {
> float lifelineHandlerRatio = conf.getFloat(
> DFS_NAMENODE_LIFELINE_HANDLER_RATIO_KEY,
> DFS_NAMENODE_LIFELINE_HANDLER_RATIO_DEFAULT);
> lifelineHandlerCount = Math.max(
> (int)(handlerCount * lifelineHandlerRatio), 1);
> }
> When this happens, the handlerCount should be subtracted from the
> lifelineHandlerCount when in fact it doesn't.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]