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

More logs when short-circuit read is failed and disabled

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0
    • datanode
    • Reviewed

    Description

      Short-circuit read (SCR) failed with following error

      2017-10-21 16:42:28,024 WARN  [B.defaultRpcServer.handler=7,queue=7,port=16020] 
      impl.BlockReaderFactory: BlockReaderFactory(xxx): unknown response code ERROR
      while attempting to set up short-circuit access. Block xxx is not valid
      

      then short-circuit read is disabled for 10 minutes without any warning message given in the log. This causes us spent some more time to figure out why we had a long time window that SCR was not working. Propose to add a warning log (other places already did) to indicate SCR is disabled and some more logging in DN to display what happened.

      Attachments

        1. HDFS-12744.002.patch
          2 kB
          Weiwei Yang
        2. HDFS-12744.001.patch
          2 kB
          Weiwei Yang

        Issue Links

          Activity

            People

              cheersyang Weiwei Yang
              cheersyang Weiwei Yang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: