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

Fix TestConcurrentReadOnParams cleaning up the connection too early #926

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

sfc-gh-pfus
Copy link
Collaborator

@sfc-gh-pfus sfc-gh-pfus commented Oct 12, 2023

Description

This test failed randomly when concurrent threads were run. If no row was read, the connection was returned to the pool too fast, before chunk decoding (in another thread) was finished. Currently, as we read from the rows, this object is not returned to the pool too early.

Checklist

  • Code compiles correctly
  • Run make fmt to fix inconsistent formats
  • Run make lint to get lint errors and fix all of them
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary

@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #926 (d87b766) into master (c6c2afd) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #926   +/-   ##
=======================================
  Coverage   83.24%   83.24%           
=======================================
  Files          49       49           
  Lines        9293     9293           
=======================================
  Hits         7736     7736           
  Misses       1557     1557           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sfc-gh-pfus sfc-gh-pfus force-pushed the SNOW-894815-fix-mutex branch 12 times, most recently from 7e48b3a to bef78ca Compare October 16, 2023 11:11
@sfc-gh-pfus sfc-gh-pfus changed the title SNOW-894815 Fix access to params from htap Fix TestConcurrentReadOnParams cleaning up the connection too early Oct 16, 2023
@sfc-gh-pfus sfc-gh-pfus marked this pull request as ready for review October 16, 2023 11:47
@sfc-gh-pfus sfc-gh-pfus requested a review from a team as a code owner October 16, 2023 11:47
connection_test.go Outdated Show resolved Hide resolved
.github/workflows/build-test.yml Show resolved Hide resolved
@sfc-gh-pfus sfc-gh-pfus force-pushed the SNOW-894815-fix-mutex branch from bef78ca to 19684ca Compare October 16, 2023 12:23
@sfc-gh-pfus sfc-gh-pfus force-pushed the SNOW-894815-fix-mutex branch from 19684ca to 9b222b2 Compare October 17, 2023 12:51
@sfc-gh-pfus sfc-gh-pfus force-pushed the SNOW-894815-fix-mutex branch from 9b222b2 to d87b766 Compare October 18, 2023 05:16
@sfc-gh-pfus sfc-gh-pfus merged commit 0e5dfdd into master Oct 19, 2023
23 checks passed
@sfc-gh-pfus sfc-gh-pfus deleted the SNOW-894815-fix-mutex branch October 19, 2023 05:20
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 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.

2 participants