Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-12943 Consistent Reads from Standby Node
  3. HDFS-14822

[SBN read] Revisit GlobalStateIdContext locking when getting server state id

    XMLWordPrintableJSON

Details

    Description

      As mentioned under HDFS-14277. One potential performance issue of Observer read is that GlobalStateIdContext#getLastSeenStateId calls getCorrectLastAppliedOrWrittenTxId which ends up acquiring lock on txnid. We internally had some discussion and analysis, we believe this lock can be avoided, by calling the non-locking version method getLastAppliedOrWrittenTxId.

      Attachments

        1. HDFS-14822.001.patch
          0.9 kB
          Chen Liang

        Issue Links

          Activity

            People

              vagarychen Chen Liang
              vagarychen Chen Liang
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: