[Bug] Incorrect filter appender name in broker logging configuration

Open Beginner friendly
#11,176 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
observability

Research direction

Open rmq.broker.logback.xml and inspect the filter and rebalance-lock appender names and routing rules. Start a broker with this configuration and exercise an orderly consumer as described, then verify that rebalance lock messages appear in lock.log rather than filter.log.

Written by the indexing model from the issue text.

Description

Before Creating the Bug Report
  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

All

RocketMQ version

develop

JDK Version

All

Describe the Bug

In rmq.broker.logback.xml, the filter appender is mistakenly named RocketmqRebalanceLockSiftingAppender, causing filter and rebalance lock logs to be routed incorrectly.

Steps to Reproduce

Start a broker using rmq.broker.logback.xml. Start a clustering DefaultMQPushConsumer with MessageListenerOrderly and a new consumer group, then check the queue lock logs.

What Did You Expect to See?

Rebalance lock logs in lock.log.

What Did You See Instead?

Rebalance lock logs appear in filter.log.

Additional Context

No response

Dominant language
Java
Stars
22.6k
Forks
12k
Avg merge
3d 12h
Merged PRs (30d)
24

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/rocketmq

All issues in apache/rocketmq

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.