Repository navigation
Do not require an end handler on a RowStream - #1765
Merged
tsegismont merged 2 commits intoNov 19, 2026
Merged
Conversation
Since 5.1.0 the end of a RowStream called its end handler without checking that one was set, so a stream with only a row handler failed with a NullPointerException after its last row. Signed-off-by: Sharang Gupta <sharang@sharanggupta.dev> Assisted-by: Anthropic Claude (claude-opus-5-5)
tsegismont
force-pushed
the
rowstream-without-end-handler
branch
from
November 12, 2026 16:44
e9e9ed6 to
ebeedbe
Compare
tsegismont
reviewed
Nov 12, 2026
The test without an end handler waited 100 ms after the last row. It now waits until the stream has released its cursor, which happens after the step that used to fail, and checks that the cursor is closed. Assisted-by: Anthropic Claude (claude-fable-5-2) Signed-off-by: Sharang Gupta <sharang@sharanggupta.dev>
tsegismont
approved these changes
Nov 19, 2026
tsegismont
left a comment
Member
There was a problem hiding this comment.
LGTM, thank you @sharanggupta
tsegismont
added a commit
that referenced
this pull request
Nov 19, 2026
* Do not require an end handler on a RowStream Since 5.1.0 the end of a RowStream called its end handler without checking that one was set, so a stream with only a row handler failed with a NullPointerException after its last row. Assisted-by: Anthropic Claude (claude-opus-5-5) * Wait for the stream to end instead of a timer The test without an end handler waited 100 ms after the last row. It now waits until the stream has released its cursor, which happens after the step that used to fail, and checks that the cursor is closed. Assisted-by: Anthropic Claude (claude-fable-5-2) --------- (cherry picked from commit 7576a13) Signed-off-by: Sharang Gupta <sharang@sharanggupta.dev> Signed-off-by: Thomas Segismont <tsegismont@gmail.com> Co-authored-by: Sharang Gupta <sharang@sharanggupta.dev>
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.
Since 5.1.0 the end of a
RowStreamcalled its end handler without checking that one was set, so a stream with only a row handler failed with aNullPointerExceptionafter its last row. The handler is now optional again, and the TCK test covers it for every database.