Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-16118

Improve the number of handlers that initialize NameNodeRpcServer#clientRpcServer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              jianghuazhu JiangHua Zhu
              jianghuazhu JiangHua Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m