Skip to content
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

SNOW-1270256 - Concurrency bug around ResultSet and Session parameters #1682

Conversation

sfc-gh-dkiriaev
Copy link
Contributor

Overview

SNOW-1270256

Pre-review self checklist

  • PR branch is updated with all the changes from master branch
  • The code is correctly formatted (run mvn -P check-style validate)
  • New public API is not unnecessary exposed (run mvn verify and inspect target/japicmp/japicmp.html)
  • The pull request name is prefixed with SNOW-XXXX:

This change fixes ConcurrentModificationException when one thread updates parameters (line 603, right below the changed line) and another iterates over the session parameters. The code itself is not supposed to update the session parameters in the first place, so it must make a copy (the fix) instead of referencing the session's parameters map directly.

@sfc-gh-dkiriaev sfc-gh-dkiriaev requested a review from a team as a code owner March 26, 2024 20:06
Copy link

github-actions bot commented Mar 26, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@sfc-gh-dkiriaev
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@sfc-gh-pfus sfc-gh-pfus merged commit e4f2f94 into snowflakedb:master Mar 28, 2024
39 of 68 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants