GeezerVison is showing github.com — BigQuery job body included in many requests that don't need it · Issue #647 · googleapis/google-cloud-node
BigQuery job body included in many requests that don't need it #647Labels api: bigqueryIssues related to the BigQuery API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionFiled internally at b/21557935, moving to public here:
Ryan, looking at some of our API logs for an unrelated issue, I see gcloud-node is including a giant query string of an entire job configuration for BigQuery API methods that do not require it, such as getQueryResults(). Is there any reason for this? Looking at the gcloud-node code, it seems like simply removing it from all the GET call request options should greatly reduce request size.
I'm guessing the issue starts here. Activityadded type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. on Jun 8, 2015stephenplusplus commented on Jun 8, 2015 weslem commented on Jun 9, 2015 Your linked code is exactly what confused me to write the bug. The call to makeReq_() for an existing query passes the entire options as a query string, substantially growing the size of the request. I think you can just null out the query string instead, but I'm concerned I've missed some important context. stephenplusplus commented on Jun 10, 2015 @weslem I sent #652 to fix the issue with getQueryResults. Which other API calls did you find that were passing the object? weslem commented on Jun 10, 2015 #652 LGTM; that was the only place I found. stephenplusplus commented on Jun 10, 2015 Awesome, thanks for catching this bug for us! I'm going to create an issue to make sure we plug any leaks that may exist in our other methods.
Oh, and feel free to report right to us here on the repo next time :)
MetadataMetadataapi: bigqueryIssues related to the BigQuery API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DevelopmentNo branches or pull requestsIssue actions
|