Skip to content

[ISSUE #11523] LiteTopic messages suffer seconds-level first delivery delay after channel idle - #11524

Open
f1amingo wants to merge 1 commit into
apache:developfrom
f1amingo:fix/lite-idle-client-blacklist
Open

f1amingo wants to merge 1 commit into
apache:developfrom
f1amingo:fix/lite-idle-client-blacklist

Conversation

@f1amingo

Copy link
Copy Markdown
Contributor

Which Issue(s) This PR Fixes

Brief Description

The background scan blacklists a client for 10s when removing its inactive event set, even if the set is empty. For a wildcard group whose lite topic has only this subscriber, new messages in the blacklist window cannot be dispatched and wait for blacklist expiry plus full-dispatch retry alignment, delaying first delivery by seconds on healthy idle consumers. This PR only blacklists clients that still hold events to re-dispatch (the blacklist's actual purpose), so idle removal just cleans up the entry and new messages dispatch immediately; behavior for blocked clients with pending events is unchanged.

How Did You Test This Change?

  • Added unit tests: idle empty event set is removed without blacklist and a new message dispatches immediately; a blocked client with events is still blacklisted and its events are re-dispatched to other clients; a sole wildcard blocked client is still throttled.
  • LiteEventDispatcherTest: 34/34 passed; broker module checkstyle passed.

…nts with empty event sets

- Only blacklist clients holding pending events when scan removes an inactive event set
- Keep re-dispatch and throttling unchanged for blocked clients with events
- Log idle event set removal at INFO instead of WARN
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.81%. Comparing base (164322b) to head (ef1be8a).

Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #11524      +/-   ##
=============================================
+ Coverage      49.79%   49.81%   +0.02%     
- Complexity     14407    14416       +9     
=============================================
  Files           1391     1391              
  Lines         103381   103384       +3     
  Branches       13529    13531       +2     
=============================================
+ Hits           51477    51502      +25     
+ Misses         45686    45670      -16     
+ Partials        6218     6212       -6     

☔ 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] LiteTopic messages suffer seconds-level first delivery delay after channel idle

2 participants