Skip to content

Do not require an end handler on a RowStream - #1765

Merged
tsegismont merged 2 commits into
eclipse-vertx:masterfrom
sharanggupta:rowstream-without-end-handler
Nov 19, 2026
Merged

tsegismont merged 2 commits into
eclipse-vertx:masterfrom
sharanggupta:rowstream-without-end-handler

Conversation

@sharanggupta

Copy link
Copy Markdown
Contributor

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. The handler is now optional again, and the TCK test covers it for every database.

@vietj vietj added this to the 5.3.0 milestone Oct 29, 2026
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
tsegismont force-pushed the rowstream-without-end-handler branch from e9e9ed6 to ebeedbe Compare November 12, 2026 16:44

@tsegismont tsegismont left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sharanggupta

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 tsegismont left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @sharanggupta

@tsegismont
tsegismont merged commit 7576a13 into eclipse-vertx:master Nov 19, 2026
20 checks passed
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>
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.

3 participants