Repository navigation
Conversation
- Document the legal HBase partition counts in both languages. - Explain the zero setting for graphs with unprefixed row keys. - Distinguish initial region layout from row-key encoding.
imbajin
left a comment
There was a problem hiding this comment.
Score: 6.5/10 · Confidence: high
Blocking: yes
Summary
The zero-partition guidance depends on an unmerged server fix and can cause initialization failure.
Evidence
Apache server passes zero to createPreSplitTable, which allocates an array of length count minus one; the linked fix remains open in a fork.
Validation notes
Source inspection only; no live HBase integration test.
| {.td-table--wide} | ||
|
|
||
| With pre-split enabled, the vertex table is created with `hbase.vertex_partitions` regions and each of the two edge tables with `hbase.edge_partitions` regions, and the serializer prefixes row keys with the partition the id hashes to. | ||
| On table creation, `hbase.vertex_partitions` sets the region count of the vertex table, and `hbase.edge_partitions` sets the count of each edge table. With row-key partitioning off, a count of `0` creates the corresponding new table with one region. |
There was a problem hiding this comment.
Current Apache HugeGraph passes a zero count to createPreSplitTable, which allocates an array of length count - 1; initializing a new table therefore fails with NegativeArraySizeException instead of creating one region. The linked server fix is still open in the fork. Please defer this guidance until the fix reaches Apache or qualify the server versions it applies to. This conclusion is from source tracing; I did not run HBase.
Purpose
Clarify HBase partition ranges and the legacy zero setting in the English and Chinese configuration guides.
Checked both sets of pages with a strict local site build and rendered text checks.
Server PR