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

test_sync_query_w_dml has num_dml_affected_rows unset #3742

Closed
dhermes opened this issue Aug 7, 2017 · 12 comments
Closed

test_sync_query_w_dml has num_dml_affected_rows unset #3742

dhermes opened this issue Aug 7, 2017 · 12 comments
Assignees
Labels
api: bigquery Issues related to the BigQuery API. priority: p2 Moderately-important priority. Fix may not be included in next release.

Comments

@dhermes
Copy link
Contributor

dhermes commented Aug 7, 2017

See: https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/2753

@tswast Any idea what would cause this "flake" to happen? (Note that the 2.7 system tests in the same build did not have this failure, as well as every other time this test case has run on CI.)

@dhermes dhermes added api: bigquery Issues related to the BigQuery API. flaky labels Aug 7, 2017
@tswast
Copy link
Contributor

tswast commented Aug 7, 2017

Bah! No clue. I wish we logged the Job ID so that I could pass it on to the backend team to investigate further.

@dhermes
Copy link
Contributor Author

dhermes commented Aug 7, 2017

Are the job IDs generated by the client? If yes, they probably match some specific regex with the build ID in it.

@tswast
Copy link
Contributor

tswast commented Aug 7, 2017

@lukesneeringer lukesneeringer added the priority: p2 Moderately-important priority. Fix may not be included in next release. label Aug 7, 2017
@dhermes
Copy link
Contributor Author

dhermes commented Aug 7, 2017

Nice find. Is it worth making it possible to pass in a job_id (so the system test callers can use something unique)?

@tswast
Copy link
Contributor

tswast commented Aug 7, 2017

It doesn't fit the DB-API, but yeah I think we need to have some way to introspect.

@dhermes
Copy link
Contributor Author

dhermes commented Aug 9, 2017

@tswast
Copy link
Contributor

tswast commented Aug 9, 2017

I'll update those tests to set a job ID prefix so it'll be easier to track down.

@tswast
Copy link
Contributor

tswast commented Aug 9, 2017

Ah, one thing it could be is the load job may not have finished. I'll use our handy new Futures API to wait until they are done before doing the DML query.

@tswast
Copy link
Contributor

tswast commented Aug 9, 2017

The other thing to keep in mind is that I'd very much like to remove the sync query method. Hopefully you got my redesign proposal doc?

@lukesneeringer
Copy link
Contributor

I did, but we are in fix-it week so I will not read it until Monday.

@tswast
Copy link
Contributor

tswast commented Aug 10, 2017

Unfortunately the query verb doesn't take a job ID, so we'll only be able to debug half the flakes (DB-API, but not sync query). I'll finish my PR for the DB-API part, though.

@tswast
Copy link
Contributor

tswast commented Oct 24, 2017

Closing, as I haven't seen this flake on the bigquery-b2 branch and #4245 is now out to merge that to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. priority: p2 Moderately-important priority. Fix may not be included in next release.
Projects
None yet
Development

No branches or pull requests

3 participants