Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-26658

AsyncFSWAL.unackedAppends should clear after transfered to AsyncFSWAL.toWriteAppends

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.0.0-alpha-2, 2.4.9
    • None
    • wal
    • None

    Description

      When ASyncFSWAL syncing to HDFS failed, AsyncFSWAL.unackedAppends are transfered to AsyncFSWAL.toWriteAppends to avoid data loss, but AsyncFSWAL.unackedAppends itself is not cleared. I think there is no need to continue retain them in AsyncFSWAL.unackedAppends because we would open a new HDFS pipeline to resend the AsyncFSWAL.unackedAppends.
      BTW : It would also simplify the logic for fixing HBASE-25905, current fix for HBASE-25905 is somewhat hard to understand. I think the problem to cause HBASE-25905 is that AsyncFSWAL.unackedAppends could not exactly reflect the unacked for current HDFS pipeline. If we clear AsyncFSWAL.unackedAppends after transferring them to AsyncFSWAL.toWriteAppends, HBASE-25905 could also avoid.

      Attachments

        Issue Links

          Activity

            People

              comnetwork chenglei
              comnetwork chenglei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: