-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Go] FlightSQL TestPreparedStatementNoSchema test is failing #35328
Comments
Yea, I've been trying to pin down the cause of it and have been unsuccessful so far. @srebhan can you take a look here as this was introduced with your changes for the driver? |
@zeroshade I cannot reproduce the issue with latest master. Tested with go 1.20 and go 1.18 with 100 tests in a row passing without issues. We should close this issue... |
We've been having issues reproducing this issue since it first showed up, but every so often I still see it happen in CI: for example here https://github.com/apache/arrow/actions/runs/5937796502/job/16109536613?pr=37304 |
### Rationale for this change Fixing a flaky test that is *very* difficult to reproduce. ### What changes are included in this PR? Adding an explicit call to drain the remaining batches from the parameter batch reader in the `DoPutPreparedStatementQuery` of the `MockServer` in the tests. This ensures that the gRPC connection doesn't close on us in between the client writing the schema message and writing the record batch message producing an `io.EOF` error. This is an extremely rare occurence based on goroutine scheduling due to the client and mockserver both running in the same process for the tests, in local testing i was only able to get it to happen 1 - 4 times per 5000 runs of the test. ### Are there any user-facing changes? No * Closes: #35328 Authored-by: Matt Topol <zotthewizard@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
…pache#38044) ### Rationale for this change Fixing a flaky test that is *very* difficult to reproduce. ### What changes are included in this PR? Adding an explicit call to drain the remaining batches from the parameter batch reader in the `DoPutPreparedStatementQuery` of the `MockServer` in the tests. This ensures that the gRPC connection doesn't close on us in between the client writing the schema message and writing the record batch message producing an `io.EOF` error. This is an extremely rare occurence based on goroutine scheduling due to the client and mockserver both running in the same process for the tests, in local testing i was only able to get it to happen 1 - 4 times per 5000 runs of the test. ### Are there any user-facing changes? No * Closes: apache#35328 Authored-by: Matt Topol <zotthewizard@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
…pache#38044) ### Rationale for this change Fixing a flaky test that is *very* difficult to reproduce. ### What changes are included in this PR? Adding an explicit call to drain the remaining batches from the parameter batch reader in the `DoPutPreparedStatementQuery` of the `MockServer` in the tests. This ensures that the gRPC connection doesn't close on us in between the client writing the schema message and writing the record batch message producing an `io.EOF` error. This is an extremely rare occurence based on goroutine scheduling due to the client and mockserver both running in the same process for the tests, in local testing i was only able to get it to happen 1 - 4 times per 5000 runs of the test. ### Are there any user-facing changes? No * Closes: apache#35328 Authored-by: Matt Topol <zotthewizard@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
…pache#38044) ### Rationale for this change Fixing a flaky test that is *very* difficult to reproduce. ### What changes are included in this PR? Adding an explicit call to drain the remaining batches from the parameter batch reader in the `DoPutPreparedStatementQuery` of the `MockServer` in the tests. This ensures that the gRPC connection doesn't close on us in between the client writing the schema message and writing the record batch message producing an `io.EOF` error. This is an extremely rare occurence based on goroutine scheduling due to the client and mockserver both running in the same process for the tests, in local testing i was only able to get it to happen 1 - 4 times per 5000 runs of the test. ### Are there any user-facing changes? No * Closes: apache#35328 Authored-by: Matt Topol <zotthewizard@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
Describe the bug, including details regarding any error messages, version, and platform.
This test failure is occurring for Go 1.18 on branches with no FlightSQL-related changes:
For example: https://github.com/apache/arrow/actions/runs/4792026546/jobs/8523088061#step:5:816
It seems to happen frequently; I'm not sure if it happens 100% of the time.
Component(s)
Go
The text was updated successfully, but these errors were encountered: