You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by "hubcio (via GitHub)" <gi...@apache.org> on 2026/02/23 12:25:45 UTC

[PR] fix(server): report correct current_offset after segment deletion [iggy]

hubcio opened a new pull request, #2798:
URL: https://github.com/apache/iggy/pull/2798

   get_consumer_offset derived partition_current_offset from
   messages_count - 1. After segment deletion, messages_count
   is decremented but the partition offset is immutable, so
   clients saw a stale value (e.g. 17 instead of 24 after
   deleting 7 messages). Use current_offset() directly since
   it reflects the true highest offset written.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(server): report correct current_offset after segment deletion [iggy]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #2798:
URL: https://github.com/apache/iggy/pull/2798#issuecomment-3944529787

   ## [Codecov](https://app.codecov.io/gh/apache/iggy/pull/2798?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 68.40%. Comparing base ([`f36c5ee`](https://app.codecov.io/gh/apache/iggy/commit/f36c5ee0bb4922969c5313b2160c6f60518c0ff5?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`844d70c`](https://app.codecov.io/gh/apache/iggy/commit/844d70c6669a5b0e259d4703f29376930f751267?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@            Coverage Diff            @@
   ##             master    #2798   +/-   ##
   =========================================
     Coverage     68.39%   68.40%           
     Complexity      656      656           
   =========================================
     Files           852      852           
     Lines         68185    68182    -3     
     Branches      59646    59643    -3     
   =========================================
   + Hits          46636    46638    +2     
   + Misses        19212    19209    -3     
   + Partials       2337     2335    -2     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/iggy/pull/2798/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [rust](https://app.codecov.io/gh/apache/iggy/pull/2798/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `69.56% <100.00%> (+<0.01%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Files with missing lines](https://app.codecov.io/gh/apache/iggy/pull/2798?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [core/server/src/shard/system/consumer\_offsets.rs](https://app.codecov.io/gh/apache/iggy/pull/2798?src=pr&el=tree&filepath=core%2Fserver%2Fsrc%2Fshard%2Fsystem%2Fconsumer_offsets.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Y29yZS9zZXJ2ZXIvc3JjL3NoYXJkL3N5c3RlbS9jb25zdW1lcl9vZmZzZXRzLnJz) | `83.01% <100.00%> (-0.14%)` | :arrow_down: |
   
   ... and [7 files with indirect coverage changes](https://app.codecov.io/gh/apache/iggy/pull/2798/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   </details>
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(server): report correct current_offset after segment deletion [iggy]

Posted by "hubcio (via GitHub)" <gi...@apache.org>.
hubcio merged PR #2798:
URL: https://github.com/apache/iggy/pull/2798


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org