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

Unset EC policy logs empty payload in edit log

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.0.0-alpha4
    • 3.0.0
    • erasure-coding
    • None

    Description

      The edit log generated by hdfs ec -unsetPolicy generates an OP_REMOVE_XATTR entry in edit logs, but the payload like xattr namespace / name / vaue are missing:

        <RECORD>
          <OPCODE>OP_REMOVE_XATTR</OPCODE>
          <DATA>
            <TXID>420481</TXID>
            <SRC>/</SRC>
            <RPC_CLIENTID>b098e758-9d7f-48b7-aa91-80ca52133b09</RPC_CLIENTID>
            <RPC_CALLID>0</RPC_CALLID>
          </DATA>
        </RECORD>
      

      As a result, when Active NN restarts, or the Standby NN replay edits, this op has not effect.

      Attachments

        1. HDFS-12569.00.patch
          2 kB
          Lei (Eddy) Xu
        2. HDFS-12569.01.patch
          3 kB
          Lei (Eddy) Xu

        Issue Links

          Activity

            People

              eddyxu Lei (Eddy) Xu
              eddyxu Lei (Eddy) Xu
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: