Skip to content

FE nodes not deregistered from BDBJE replication group when scaling down replicas #789

Open

Description

@mpapt

Describe the bug

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

  1. Deploy a StarRocksCluster with starRocksFeSpec.replicas: 3
  2. Scale down to starRocksFeSpec.replicas: 2 via the CR
  3. Check registered FE members:
    SHOW PROC '/frontends';
  4. Observe the removed FE node still listed with Alive: false, Join: false, ReplayedJournalId: 0
  5. 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.

Please complete the following information

  • Operator Version: v1.11.4
  • Chart Name: kube-starrocks
  • Chart Version: v1.11.4

Activity

  1. added
    bug
    on Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions