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…