Skip to content

docs(server): clarify hbase partition counts - #586

Open
imbajin wants to merge 1 commit into
apache:masterfrom
hugegraph:codex/repair-hbase-partition-docs
Open

imbajin wants to merge 1 commit into
apache:masterfrom
hugegraph:codex/repair-hbase-partition-docs

Conversation

@imbajin

@imbajin imbajin commented Dec 3, 2026

Copy link
Copy Markdown
Member

Purpose

Clarify HBase partition ranges and the legacy zero setting in the English and Chinese configuration guides.

  • Explain what row-key partitioning changes and how counts apply to newly created tables.
  • Document zero with partitioning disabled, and that existing region boundaries stay in place.

HBase 行键分片和新表 Region 的配置

Checked both sets of pages with a strict local site build and rendered text checks.

Server PR

- 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
imbajin marked this pull request as ready for review December 3, 2026 07:53

@imbajin imbajin left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Gate zero-count guidance on the server fix

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant