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

Move Server logging of StatedId inside receiveRequestState()

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.0, 3.3.0, 3.1.4, 3.2.2
    • Component/s: None
    • Labels:

      Description

      HDFS-14270 introduced logging of the client and server StateIds in trace level. Unfortunately one of the arguments alignmentContext.getLastSeenStateId() holds a lock on FSEdits, which is called even if trace logging level is disabled. I propose to move logging message inside GlobalStateIdContext.receiveRequestState() where clientStateId and serverStateId already calculated and can be easily printed.

        Attachments

        1. HDFS-14494.001.patch
          3 kB
          Shweta

        Issue Links

          Activity

            People

            • Assignee:
              shwetayakkali Shweta
              Reporter:
              shv Konstantin Shvachko

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment