yugabyte/yugabyte-db

[docdb] master UI hash_split of last partition should be inclusive

Closed

#6,299 opened on Nov 6, 2020

 (2 comments) (0 reactions) (0 assignees)C (1,003 forks)batch import
area/docdbgood first issuehelp wantedkind/bugpriority/medium

Repository metrics

Stars
 (8,229 stars)
PR merge metrics
 (Avg merge 17d 21h) (92 merged PRs in 30d)

Description

Jira Link: DB-4659 The master UI table page has tablets with their partition boundaries. Recent commit dca4cf4ef52d768ea955ffe9a1b0b7ceffd20a9c made the format of the boundaries into hex notation. It also converted the "start" and "end" words to 0x0000 and 0xffff, respectively.

Now, it's a lot more obvious that there's an issue with all the boundaries being [foo, bar), foo being inclusive and bar being exclusive. Before, it looked like [foo, <end>), which is sort of fine depending on your interpretation of "end"; now, it looks like [foo, 0xffff), which is definitely incorrect. Change that last partition to be all inclusive so that it looks like [foo, 0xffff]. As of now, this is only applicable to YCQL hash partitioned tables.

Contributor guide