GeezerVison is showing github.com — Test TestBigQuery.test_transaction_info is flaky. · Issue #975 · googleapis/python-bigquery
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Test TestBigQuery.test_transaction_info is flaky. #975Activitytswast commented on Sep 20, 2021 I checked the job state for a recent failure:
{
"kind": "bigquery#job",
"etag": "NSFsBEFD1+My1joEvfuzGQ==",
"id": "precise-truck-742:US.a9a56a2e-836e-4679-add5-941543bfbf8f",
"selfLink": "https://content-bigquery.googleapis.com/bigquery/v2/projects/precise-truck-742/jobs/a9a56a2e-836e-4679-add5-941543bfbf8f?location=US",
"user_email": "REDACTED",
"configuration": {
"query": {
"query": "\n BEGIN TRANSACTION;\n INSERT INTO `precise-truck-742.python_bigquery_tests_system_bq_system_test_1632082968448.test_dml_statistics`\n VALUES (\"one\", 1), (\"two\", 2), (\"three\", 3), (\"four\", 4);\n\n UPDATE `precise-truck-742.python_bigquery_tests_system_bq_system_test_1632082968448.test_dml_statistics`\n SET bar = bar + 1\n WHERE bar \u003e 2;\n COMMIT TRANSACTION;\n ",
"priority": "INTERACTIVE",
"useLegacySql": false
},
"jobType": "QUERY"
},
"jobReference": {
"projectId": "precise-truck-742",
"jobId": "a9a56a2e-836e-4679-add5-941543bfbf8f",
"location": "US"
},
"statistics": {
"creationTime": "1632082969228",
"startTime": "1632082969269",
"endTime": "1632082974219",
"totalBytesProcessed": "55",
"query": {
"totalBytesProcessed": "55",
"totalBytesBilled": "10485760",
"totalSlotMs": "19050",
"statementType": "SCRIPT"
},
"totalSlotMs": "19050",
"numChildJobs": "4"
},
"status": {
"state": "DONE"
}
}
Looks like no transactionInfo key was ever added. I've filed internal issue 200542305 to have the backend team investigate further. tswast commented on Sep 21, 2021 According to the backend folks, since a query job can contain multiple transactions, this key is not intended to be present on the parent job. Instead, we need to iterate through the child jobs to find the one that began the transaction.
They are investigating why transactionInfo appears on the parent job at all (more often than not). jimfulton commented on Sep 27, 2021 ContributorAuthor More actions plamut commented on Sep 27, 2021 @jimfulton IIRC not yet, I'm waiting on #855 (pretty large!) to get in before syncing v3 with main (it has been fixed in main, though). tswast commented on Oct 7, 2021
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|