Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24211

Replace Snapshot invalidate logic with WriteSet check for txn conflict detection

    XMLWordPrintableJSON

    Details

      Description

      Issue with concurrent writes on partitioned table:
      Concurrent writes on different partitions should execute in parallel without issues. They acquire a shared lock on table level and exclusive write on partition level (hive.txn.xlock.write=true).
      However there is a problem with the Snapshot validation. It compares valid writeIds seen by current transaction, recorded before locking, with the actual list of writeIds. The Issue is that writeId in Snapshot has no information on partition, meaning that concurrent writes to different partitions would be seen as writes to the same non-partitioned table causing Snapshot to be obsolete.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dkuzmenko Denys Kuzmenko
                Reporter:
                dkuzmenko Denys Kuzmenko
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m