-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The errorCode
and errorMessage
fields of QueryStatus
enum are not thread-safe
#1370
Comments
errorCode
and errorMessage
of QueryStatus
enum is not thread safeerrorCode
and errorMessage
fields of QueryStatus
enum are not thread safe
errorCode
and errorMessage
fields of QueryStatus
enum are not thread safeerrorCode
and errorMessage
fields of QueryStatus
enum are not thread-safe
Thanks for reporting it @arouel , PR is being reviewed internally. |
Added comments to the PR. Still in review. |
Ask PR filer to answer the questions in the PR. |
@sfc-gh-pfus Could you please check the PR and finish merging it? Josh Zana from apps team need this merge to the code line. If you are buys we can assign to other teammates. |
@sfc-gh-jzana The filer doesn't give the test case to repro and then test after the fix. Can we get it? Are we sharing connection between threads? |
@sfc-gh-igarish It shouldn't matter whether the connection is shared across threads., Doesn't even require multiple threads for that matter. This is because each enum value of The test case would look something like this psuedocode:
You would expect that after this, With the current code, it will not, because the second call will overwrite the error message on the singleton instance of |
The PR was merged and should be the part of the January release. |
Fix is part of snowflake-jdbc in version 3.14.5 |
3.13.30
Any OS
Java 17
Running many Snowflake queries concurrently.
When multiple queries fail at the same time, the
errorCode
anderrorMessage
of theQueryStatus
should contain the correct error as seen in the query history, but may contain another error code and error message from a different query that failed at the same time.No
The text was updated successfully, but these errors were encountered: