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

append() and increment() may result in inconsistent result on retries.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.94.0, 0.95.2
    • None
    • None
    • None

    Description

      append() and increment() api can give inconsistent result in following scenarios :

      1- For eg, if the client does not receive the response in the specified time, it retries. Now the first call to increment/append is already done and this retry will again make the operation to succeed.
      2- Now if the sync() to WAL fails we get an IOException, on getting an exception there is a retry done which again results in the doing the increment/append again.

      When may need some sort of roll back for the second problem.

      For the first one we need to see how to handle this.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ashutosh_jindal Ashutosh Jindal
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: