DEV Community

Michael
Michael

Posted on

Why Rebalance Never Finishes After Expanding a GBase 8a Mirror Cluster

A mirror cluster in the China-domestically developed GBase 8a MPP database from GBASE only works while both sides have the same number of primary fragments and compatible distribution counts. Expansion or shrinkage inevitably breaks both conditions, so rebalance during an expansion never completes until the mirror relationship is removed first.

Error

The express.log of gcluster reports:

<RebalanceRunQuery|259>:gcluster command error: vc00001's hashmap number(2) do not equal vc00002's hashmap number(1)
Enter fullscreen mode Exit fullscreen mode

Resolution

Drop the mirror relationship, re-establish it once both sides meet the conditions again, and rebalance can then proceed:

gbase> alter database testdb delete mirror;
Query OK, 1 row affected (Elapsed: 00:00:00.65)
Enter fullscreen mode Exit fullscreen mode

Going forward, schedule the mirror removal as part of the expansion runbook on a gbase cluster: the hashmap count mismatch is a symptom of the two sides diverging, and no amount of waiting will let a gbase database finish rebalancing while mirroring is still active.

Top comments (0)