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

ICVs across /during a flush can cause multiple keys with the same TS (bad)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.20.0
    • Fix Version/s: 0.20.0
    • Component/s: None
    • Labels:
      None

      Description

      We noticed a bug whereby the value in a hbase ICV'ed counter was lower, and the bug turned out to be that during a flush, the ICV will grab the KeyValue from 'memcache' and reuse the timestamp... if we grab the KeyValue from the snapshot we end up with 2 key values, one in memcache, one in a hfile, both with the same timestamp, but one with a lower value than the other.

      The fix is to not reuse timestamps if they come out of the snapshot.

        Attachments

        1. HBASE-1703.patch
          7 kB
          ryan rawson

          Activity

            People

            • Assignee:
              ryanobjc ryan rawson
              Reporter:
              ryanobjc ryan rawson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: