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

Custom timestamps should not be allowed to be negative

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.96.0
    • Client
    • None
    • Reviewed
    • Timestamps in Mutations (Put/Delete, etc) are not allowed to be negative throwing IllegalArgumentException from the client side. Note that negative timestamps are not sorted correctly, and will cause inconsistencies when accessing the values.

    Description

      Client supplied timestamps should not be allowed to be negative, otherwise unpredictable results will follow. Especially, since we are encoding the ts using Bytes.Bytes(long), negative timestamps are sorted after positive ones. Plus, the new PB messages define ts' as uint64.

      Credit goes to Huned Lokhandwala for reporting this.

      Attachments

        1. hbase-8462_v3.patch
          14 kB
          Enis Soztutar
        2. hbase-8462_v2.patch
          15 kB
          Enis Soztutar
        3. hbase-8462_v1.patch
          8 kB
          Enis Soztutar

        Issue Links

          Activity

            People

              enis Enis Soztutar
              enis Enis Soztutar
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: