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-980046 Make QueryStatus thread safe #1571

Closed
wants to merge 1 commit into from

Conversation

sfc-gh-pfus
Copy link
Contributor

Overview

SNOW-980046

QueryStatus was an enum, but it also had a state (error description and code). When one query status set one of these fields, it reflected on all places where the same query status was used.

The solution replaces QueryStatus enum with class. This class creates instances for each call and on the same time - it keeps backward compatibility from compilation and equality perspective.

@sfc-gh-pfus sfc-gh-pfus force-pushed the SNOW-980046-query-status-thread-safety branch 2 times, most recently from 40ea6d6 to c3e3e71 Compare November 29, 2023 08:47
@sfc-gh-pfus sfc-gh-pfus force-pushed the SNOW-980046-query-status-thread-safety branch from c3e3e71 to fe0ed36 Compare November 29, 2023 10:47
@sfc-gh-pfus sfc-gh-pfus closed this Dec 6, 2023
@sfc-gh-pfus sfc-gh-pfus deleted the SNOW-980046-query-status-thread-safety branch December 6, 2023 11:16
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2023
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.

1 participant