Skip to content

Added check for DONE_ERROR status token and throw appropriate exception#1857

Merged
lilgreenbird merged 13 commits intomicrosoft:mainfrom
lilgreenbird:killsession
Jul 20, 2022
Merged

Added check for DONE_ERROR status token and throw appropriate exception#1857
lilgreenbird merged 13 commits intomicrosoft:mainfrom
lilgreenbird:killsession

Conversation

@lilgreenbird
Copy link
Copy Markdown
Contributor

@lilgreenbird lilgreenbird commented Jun 29, 2022

This fixes #1846 and #1505 where a DONE_ERROR status from the server resulting from a killed session was ignored by the driver.

@lilgreenbird lilgreenbird marked this pull request as ready for review June 29, 2022 07:39
@lilgreenbird lilgreenbird added this to the 11.2.0 milestone Jun 29, 2022
@lilgreenbird lilgreenbird changed the title Fixed issue where DONE_ERROR from server is ignored Added check for DONE_ERROR and throw exception Jun 30, 2022
@lilgreenbird lilgreenbird changed the title Added check for DONE_ERROR and throw exception Added check for DONE_ERROR status token and throw appropriate exception Jun 30, 2022
Comment thread src/main/java/com/microsoft/sqlserver/jdbc/SQLServerResource.java Outdated
Comment thread src/main/java/com/microsoft/sqlserver/jdbc/SQLServerResultSet.java Outdated
Jeffery-Wasty
Jeffery-Wasty previously approved these changes Jul 12, 2022
tkyc
tkyc previously approved these changes Jul 12, 2022
@lilgreenbird lilgreenbird dismissed stale reviews from tkyc and Jeffery-Wasty via c425fd5 July 14, 2022 23:06
Copy link
Copy Markdown
Collaborator

@David-Engel David-Engel left a comment

Choose a reason for hiding this comment

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

Assuming the test stability is worked out, I'm good with the changes, from a funtional perspective.

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.

[QUESTION] Exception is not thrown as expected when the session is killed in SQL database

5 participants