Skip to content

[ISSUE #11626] Consumer progress fails for groups with LMQ offsets - #11627

Open
f1amingo wants to merge 1 commit into
apache:developfrom
f1amingo:fix/consumerprogress-lmq-route
Open

f1amingo wants to merge 1 commit into
apache:developfrom
f1amingo:fix/consumerprogress-lmq-route

Conversation

@f1amingo

Copy link
Copy Markdown
Contributor

Which Issue(s) This PR Fixes

Brief Description

consumerProgress -g fails with TOPIC_NOT_EXIST when broker-provided offsets include LMQ queues, because static-topic processing queries their independent NameServer routes. Preserve LMQ offsets directly and perform route lookup and static mapping only for non-LMQ topics. Normal-topic errors, static-topic mapping, and aggregate statistics remain unchanged.

How Did You Test This Change?

  • Command-level remoting regression: fails with CODE 17 before the fix and passes after it.
  • Covers mixed normal/static/LMQ offsets, multi-broker aggregation, normal-route errors, and the explicit-cluster path.
  • JDK 11: 87 tests passed; 4 existing tests skipped.
  • JDK 21: all 4 new regression tests passed.
  • Checkstyle and git diff --check passed.

- Preserve broker-provided LMQ offsets without NameServer route lookups.
- Keep normal and static topic processing unchanged.
- Cover command output, mixed topics, and multi-broker aggregation.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.97%. Comparing base (e114b54) to head (d6b2be7).

Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #11627      +/-   ##
=============================================
+ Coverage      50.86%   50.97%   +0.10%     
- Complexity     14881    14902      +21     
=============================================
  Files           1391     1391              
  Lines         103773   103777       +4     
  Branches       13614    13615       +1     
=============================================
+ Hits           52789    52897     +108     
+ Misses         44724    44604     -120     
- Partials        6260     6276      +16     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Consumer progress fails for groups with LMQ offsets

2 participants