[fix][client] PIP-84: Skip processing a message in the message listener if the consumer epoch is no longer valid - #25007
Merged
lhotari merged 1 commit intoNov 24, 2025
Conversation
…e consumer epoch is no longer valid
lhotari
requested review from
Technoboy-,
codelipenghui,
congbobo184,
dao-jun,
nodece and
poorbarcode
November 21, 2025 15:03
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #25007 +/- ##
============================================
+ Coverage 74.27% 74.29% +0.02%
- Complexity 33563 34057 +494
============================================
Files 1920 1920
Lines 150279 150286 +7
Branches 17448 17451 +3
============================================
+ Hits 111618 111657 +39
+ Misses 29768 29733 -35
- Partials 8893 8896 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Technoboy-
approved these changes
Nov 24, 2025
ganesh-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Dec 1, 2025
…er if the consumer epoch is no longer valid (apache#25007) (cherry picked from commit 9deee37) (cherry picked from commit e5368c0)
manas-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Dec 2, 2025
…er if the consumer epoch is no longer valid (apache#25007) (cherry picked from commit 9deee37) (cherry picked from commit e9f49f2)
ganesh-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Dec 2, 2025
…er if the consumer epoch is no longer valid (apache#25007) (cherry picked from commit 9deee37) (cherry picked from commit e5368c0)
srinath-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Dec 2, 2025
…er if the consumer epoch is no longer valid (apache#25007) (cherry picked from commit 9deee37) (cherry picked from commit e9f49f2)
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
Dec 3, 2025
…er if the consumer epoch is no longer valid (apache#25007) (cherry picked from commit 9deee37)
Rutuja-IBM
pushed a commit
to datastax/pulsar
that referenced
this pull request
Feb 9, 2026
…er if the consumer epoch is no longer valid (apache#25007) (cherry picked from commit 9deee37) (cherry picked from commit e9f49f2)
Rutuja-IBM
pushed a commit
to datastax/pulsar
that referenced
this pull request
Feb 9, 2026
…er if the consumer epoch is no longer valid (apache#25007) (cherry picked from commit 9deee37) (cherry picked from commit e9f49f2)
Rutuja-IBM
pushed a commit
to datastax/pulsar
that referenced
this pull request
Feb 12, 2026
…er if the consumer epoch is no longer valid (apache#25007) (cherry picked from commit 9deee37) (cherry picked from commit e9f49f2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
PIP-84: Pulsar client: Redeliver command add epoch was implemented for Pulsar 2.10 with PR #10478, however it missed handling of the usage of message listeners.
When message listeners are used, the messages will get buffered in the listener's executor. This case wasn't covered.
Modifications
Before processing a message in the message listener, add a similar check that is done for messages before processing while using the receive API.
Tests TBD
Documentation
docdoc-requireddoc-not-neededdoc-complete