Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][client] Fix wrong start message id when it's a chunked message id #23713

Merged

Conversation

BewareMyPower
Copy link
Contributor

Motivation

When a reader's start message id is a chunked message id, this chunked message will be read even if startMessageIdInclusive() is not configured.

Modifications

Only use getFirstChunkMessageId as the start message id when startMessageIdInclusive() is configured. Improve the testSeekChunkMessages to verify it.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@BewareMyPower BewareMyPower added type/bug The PR fixed a bug or issue reported a bug area/client release/3.0.9 release/4.0.2 labels Dec 11, 2024
@BewareMyPower BewareMyPower added this to the 4.1.0 milestone Dec 11, 2024
@BewareMyPower BewareMyPower self-assigned this Dec 11, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Dec 11, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.41%. Comparing base (bbc6224) to head (dd98b35).
Report is 792 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23713      +/-   ##
============================================
+ Coverage     73.57%   74.41%   +0.83%     
- Complexity    32624    34575    +1951     
============================================
  Files          1877     1945      +68     
  Lines        139502   147466    +7964     
  Branches      15299    16271     +972     
============================================
+ Hits         102638   109731    +7093     
- Misses        28908    29266     +358     
- Partials       7956     8469     +513     
Flag Coverage Δ
inttests 27.29% <33.33%> (+2.71%) ⬆️
systests 24.36% <33.33%> (+0.04%) ⬆️
unittests 73.79% <100.00%> (+0.95%) ⬆️

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

Files with missing lines Coverage Δ
...va/org/apache/pulsar/client/impl/ConsumerImpl.java 79.10% <100.00%> (+1.52%) ⬆️

... and 668 files with indirect coverage changes

@BewareMyPower BewareMyPower merged commit 4606385 into apache:master Dec 13, 2024
61 of 62 checks passed
@BewareMyPower BewareMyPower deleted the bewaremypower/fix-seek-chunk branch December 13, 2024 06:38
lhotari pushed a commit that referenced this pull request Dec 16, 2024
lhotari pushed a commit that referenced this pull request Dec 16, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Dec 19, 2024
…id (apache#23713)

(cherry picked from commit 4606385)
(cherry picked from commit c93da6e)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Dec 23, 2024
…id (apache#23713)

(cherry picked from commit 4606385)
(cherry picked from commit c93da6e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants