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

Couple Increments/Appends with Put/Delete(s)

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • 0.95.2
    • None
    • None
    • None

    Description

      See related issue - https://issues.apache.org/jira/browse/HBASE-4583

      Currently, we cannot bundle increment/append with put/delete operations. The above JIRA MVCC'izes the increment/append operations.

      One issue is that increment(s)/append(s) are not idempotent and hence repeating the transaction has an associated issue of leading to incorrect value/append results. This could be solved by passing additional tokens as part of the append(s).

      One possible high level approach could be:
      1) Class IncrementMutation which inherits from Increment and Mutation
      2) In the mutateRow call, we add a case for "IncrementMutation" object
      3) Factor out the code wrapped inside the "lock and MVCC" from increment() function to internalIncrement.
      4) Call internalIncrement from mutateRow and increment()

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            varunsharma Varun Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment