Skip to content

ReadPartitionSession: skipping an empty read batch instead of dropping the rest of the response - #694

Open
Myllyenko wants to merge 1 commit into
ydb-platform:masterfrom
Myllyenko:fix/read-partition-empty-batch
Open

ReadPartitionSession: skipping an empty read batch instead of dropping the rest of the response#694
Myllyenko wants to merge 1 commit into
ydb-platform:masterfrom
Myllyenko:fix/read-partition-empty-batch

Conversation

@Myllyenko

Copy link
Copy Markdown

addBatches returned as soon as it saw a batch with no messages, so every batch after it in the same ReadResponse was silently discarded: the messages never reached the user and the read futures of those batches never completed, which also stopped ReadSession.onReadResponse from requesting more data.

addBatches returned as soon as it saw a batch with no messages, so every
batch after it in the same ReadResponse was silently discarded: the
messages never reached the user and the read futures of those batches
never completed, which also stopped ReadSession.onReadResponse from
requesting more data.

Skip the offending batch and keep processing the rest of the response.
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.94%. Comparing base (d876581) to head (0de3381).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #694      +/-   ##
============================================
+ Coverage     71.91%   71.94%   +0.03%     
- Complexity     3474     3475       +1     
============================================
  Files           390      390              
  Lines         16220    16220              
  Branches       1698     1698              
============================================
+ Hits          11664    11669       +5     
+ Misses         3904     3900       -4     
+ Partials        652      651       -1     

☔ 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.

1 participant