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

Move RPC response serialization into Server.doResponse

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • HDFS-12943
    • HDFS-12943, 3.3.0
    • None
    • None
    • Reviewed

    Description

      In HDFS-13399 we addressed a race condition in AlignmentContext processing where the RPC response would assign a transactionId independently of the transactions own processing, resulting in a stateId response that was lower than expected. However this caused us to serialize the RpcResponse twice in order to address the header field change.

      See here:
      https://issues.apache.org/jira/browse/HDFS-13399?focusedCommentId=16464279&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16464279

      And here:
      https://issues.apache.org/jira/browse/HDFS-13399?focusedCommentId=16498660&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16498660

      At the end it was agreed upon to move the logic of Server.setupResponse into Server.doResponse directly.

      Attachments

        1. HDFS-13665-HDFS-12943.000.patch
          4 kB
          Plamen Jeliazkov
        2. HDFS-13665-HDFS-12943.001.patch
          4 kB
          Plamen Jeliazkov
        3. HDFS-13665-HDFS-12943.002.patch
          4 kB
          Plamen Jeliazkov

        Activity

          People

            zero45 Plamen Jeliazkov
            zero45 Plamen Jeliazkov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: