Fixed StartPartitionSessionResponse for reading without consumer#667
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #667 +/- ##
============================================
+ Coverage 71.68% 71.69% +0.01%
Complexity 3429 3429
============================================
Files 386 386
Lines 16071 16070 -1
Branches 1688 1688
============================================
+ Hits 11520 11522 +2
+ Misses 3900 3896 -4
- Partials 651 652 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
AI Review SummaryVerdict: ✅ No critical issues found Critical issuesNo critical issues found. Other findings
This review was generated automatically. Critical issues require attention; other findings are advisory. |
|
Analysis performed by claude, claude-opus-4-6. |
There was a problem hiding this comment.
Pull request overview
This PR adjusts how the SDK forms StartPartitionSessionResponse so that readOffset / commitOffset are only sent when explicitly configured, which is necessary for correct “read without consumer” behavior in the topic reader. It also updates/extends integration tests to cover reading with and without a consumer, and with explicit partition IDs.
Changes:
- Build
StartPartitionSessionResponseonce and setreadOffset/commitOffsetonly when present inStartPartitionSessionSettings. - Refactor reader integration tests to use
CountDownLatch-based assertions and add coverage for reading by partition id and without a consumer.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
topic/src/main/java/tech/ydb/topic/read/impl/ReadSession.java |
Changes StartPartitionSessionResponse construction so optional offsets are omitted unless explicitly set. |
topic/src/test/java/tech/ydb/topic/TopicReadersIntegrationTest.java |
Updates synchronization approach and adds integration scenarios for partition-id reads and consumer-less reads. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.