Skip to content

[Improvement] Deprecate legacy Broker DLedger mode #10641

Description

@RongtongJin

Motivation

RocketMQ still exposes the legacy Broker DLedger mode through enableDLegerCommitLog=true, DLedgerCommitLog, and the related MessageStoreConfig accessors. For new deployments, Controller mode is the recommended automatic failover path.

This proposal is limited to Broker DLedger mode. It does not deprecate the DLedger-backed Controller implementation.

Proposed changes

  • Mark DLedgerCommitLog and the Broker-DLedger-specific MessageStoreConfig accessors as deprecated.
  • Log a clear warning when a Broker starts with enableDLegerCommitLog=true.
  • Keep existing Broker DLedger behavior, dependencies, and tests intact for compatibility.
  • Do not remove or disable the feature because existing deployments may still rely on it.

Compatibility

Existing clusters continue to start and operate unchanged. The only runtime difference is a deprecation warning for Brokers that explicitly enable the legacy mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions