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

CatalogJanior:SplitParentFirstComparator doesn't sort as expected, for the last region when the endkey is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.92.0, 0.94.0
    • 0.92.0
    • master
    • None
    • Reviewed

    Description

      When reviewing HBASE-4238 backporting, Jon found this issue.

      What happens if the split points are (empty end key is the last key, empty start key is the first key)

      Parent [A,)
      L daughter [A,B),
      R daughter [B,)

      When sorted, we gets to end key comparision which results in this incorrector order:
      [A,B), [A,), [B,)

      we wanted:
      [A,), [A,B), [B,)

      Attachments

        Activity

          People

            jxiang Jimmy Xiang
            jxiang Jimmy Xiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: