You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FE nodes not deregistered from BDBJE replication group when scaling down replicas #789
When scaling down FE replicas (e.g. from 3 to 2) via the StarRocksCluster CR, the operator reduces the StatefulSet replica count but does not call ALTER SYSTEM DROP FOLLOWER to remove the decommissioned node from the StarRocks replication group. The removed FE node remains registered as a dead BDBJE group member with ReplayedJournalId: 0 indefinitely.
BDBJE cannot clean old journal files (.jdb) until all registered group members have acknowledged processing entries via the "globally persistent VLSN" watermark. A permanently dead, unremoved member blocks this watermark, causing all journal files to accumulate with no cleanup ever occurring.
Observed on a 47-day-old cluster scaled from 3→2 FE replicas: 507 .jdb files (~4.8 GB) retained since cluster creation, zero cleanup, ultimately causing the fe-meta PVC to exceed StarRocks's 5 GB free space requirement — resulting in CrashLoopBackOff on one FE node and write unavailability for the cluster.
This is the same class of bug as #713 (CN nodes not deregistered on scale-in) but affects FE nodes.
To Reproduce
Deploy a StarRocksCluster with starRocksFeSpec.replicas: 3
Scale down to starRocksFeSpec.replicas: 2 via the CR
Check registered FE members:
SHOW PROC '/frontends';
Observe the removed FE node still listed with Alive: false, Join: false, ReplayedJournalId: 0
Wait — observe that BDBJE .jdb journal files in /opt/starrocks/fe/meta/bdb/ accumulate indefinitely with no cleanup
Expected behavior
When scaling down FE replicas, the operator should call ALTER SYSTEM DROP FOLLOWER "<host>:<edit_log_port>" for each removed FE node, mirroring the fix applied for CN nodes in #713. Old BDBJE journal files should then be cleaned up as the VLSN watermark advances normally.
Activity