Menu

Why the Rebalance Task Count Drops Mid-Run in GBase 8a
๐Ÿ“ฐ

Why the Rebalance Task Count Drops Mid-Run in GBase 8a

DEV Community: databaseยทMichaelยท2 days ago
#TkulR9vi
#devtodatabase#devto#dev#table#rebalance
Long article (293 words) โ€” no AI summary yet.
Reading 0:00
15s threshold

In V95 of the China-domestically developed GBase 8a MPP database from GBASE, both expansion and node replacement are carried out through rebalance . When a task is launched, every table that must take part is inserted into gclusterdb.rebalancing_status . In some cases โ€” for example when a table has been dropped โ€” the number of rows in that task table can go down instead of up.

Symptom

A customer compared the rebalance progress on two consecutive days:

Pending STARTING tasks fell from 3255 to 3251 .

COMPLETED tasks fell from 563 to 560 .

Pending tasks only decrease as rebalance proceeds, so 4 tables were indeed processed that day (3255 โˆ’ 3251). Completed tasks should have risen by 4, yet they dropped by 3 (560 โˆ’ 563). Why?

Cause

When a rebalance task moves from STARTING to RUNNING , the task is deleted if the table it references no longer exists โ€” for instance because it was dropped.โ€ฆ

Continue reading โ€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.