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

RBF: Optimize debug logs of class ConnectionPool and other related class.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.4
    • 3.4.0
    • rbf
    • Reviewed

    Description

      When we change the log level of RouterRpcClient from INFO to DEBUG to figure out which connection an user is using. We found logs below:

       

      2023-05-29 09:46:09,033 DEBUG org.apache.hadoop.hdfs.server.federation.router.RouterRpcClient: User someone NN ANN:8020 is using connection ClientNamenodeProtocolTranslatorPB@ANN/ANN_IP:8020x3
      2023-05-29 09:46:09,037 DEBUG org.apache.hadoop.hdfs.server.federation.router.RouterRpcClient: User someone NN ANN:8020 is using connection ClientNamenodeProtocolTranslatorPB@ANN/ANN_IP:8020x1
      2023-05-29 09:46:09,037 DEBUG org.apache.hadoop.hdfs.server.federation.router.RouterRpcClient: User someone NN ANN:8020 is using connection ClientNamenodeProtocolTranslatorPB@ANN/ANN_IP:8020x2
      2023-05-29 09:46:09,037 DEBUG org.apache.hadoop.hdfs.server.federation.router.RouterRpcClient: User someone NN ANN:8020 is using connection ClientNamenodeProtocolTranslatorPB@ANN/ANN_IP:8020x3
      2023-05-29 09:46:09,042 DEBUG org.apache.hadoop.hdfs.server.federation.router.RouterRpcClient: User someone NN ANN:8020 is using connection ClientNamenodeProtocolTranslatorPB@ANN/ANN_IP:8020x0 

      It seems not very clear for us to figure out which connection user is using. Therefore, i think we should optimize the toString method of class ConnectionContext.

      Attachments

        Issue Links

          Activity

            People

              zhanghaobo farmmamba
              zhanghaobo farmmamba
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: