Skip to content

[Java] feat(LitePushConsumer): enable Lite Push Consumer to suspend consumption#1206

Merged
lizhimins merged 1 commit intoapache:masterfrom
f1amingo:feature/java_suspend
Apr 7, 2026
Merged

[Java] feat(LitePushConsumer): enable Lite Push Consumer to suspend consumption#1206
lizhimins merged 1 commit intoapache:masterfrom
f1amingo:feature/java_suspend

Conversation

@f1amingo
Copy link
Copy Markdown
Contributor

This commit enables Lite Push Consumer to handle suspended consumption results by:

  1. Creating corresponding FIFO consume service based on whether it's a LiteConsumer in PushConsumerImpl
  2. Converting ConsumeResult from enum to class to support custom result types including suspension
  3. Adding LitePushConsumerBuilder configuration option to enable FIFO acceleration processing
  4. Refactoring FifoConsumeService to improve flexibility in message grouping and iterative consumption
  5. Supporting suspended consume result handling in LitePushConsumer
  6. Synchronizing subscription manager to immediately sync all Lite subscriptions after startup

This commit enables Lite Push Consumer to handle suspended consumption results by:
1. Creating corresponding FIFO consume service based on whether it's a LiteConsumer in PushConsumerImpl
2. Converting ConsumeResult from enum to class to support custom result types including suspension
3. Adding LitePushConsumerBuilder configuration option to enable FIFO acceleration processing
4. Refactoring FifoConsumeService to improve flexibility in message grouping and iterative consumption
5. Supporting suspended consume result handling in LitePushConsumer
6. Synchronizing subscription manager to immediately sync all Lite subscriptions after startup

Change-Id: I68c7b00599a990ada83083792c53f2edf927a21d
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 9.58904% with 66 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.73%. Comparing base (4076e2b) to head (2556824).
⚠️ Report is 102 commits behind head on master.

Files with missing lines Patch % Lines
...ent/java/impl/consumer/LiteFifoConsumeService.java 0.00% 23 Missing ⚠️
.../client/java/impl/consumer/FifoConsumeService.java 0.00% 17 Missing ⚠️
...mq/client/java/impl/consumer/ProcessQueueImpl.java 28.57% 13 Missing and 2 partials ⚠️
...mq/client/java/impl/consumer/PushConsumerImpl.java 0.00% 5 Missing ⚠️
...cketmq/client/java/impl/consumer/ConsumerImpl.java 0.00% 3 Missing ⚠️
...ava/impl/consumer/LitePushConsumerBuilderImpl.java 33.33% 2 Missing ⚠️
...nt/java/impl/consumer/LiteSubscriptionManager.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1206      +/-   ##
============================================
+ Coverage     53.26%   53.73%   +0.46%     
- Complexity      651      784     +133     
============================================
  Files           208      220      +12     
  Lines         14303    14440     +137     
  Branches       5845     5576     -269     
============================================
+ Hits           7619     7759     +140     
+ Misses         6308     6282      -26     
- Partials        376      399      +23     
Flag Coverage Δ
java 62.20% <9.58%> (+0.51%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@qianye1001 qianye1001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lizhimins lizhimins merged commit 505e1fd into apache:master Apr 7, 2026
20 checks passed
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.

4 participants