bigquery: rowIterator.Next
calls hangs forever possibly because of not having bigquery.readsessions.getData
permission
#8660
Labels
api: bigquery
Issues related to the BigQuery API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Client
bigquery - main
Environment
macOS arm64
Go Environment
go version go1.21.0 darwin/arm64
Expected behavior
Client should throw permission denied error(or similar)
Actual behavior
Client hangs forever
Additional context
I used a debugger to catch the place where its stuck. These are my findings.
The issue only happens when the SDK fetches the results using arrow streams.
In
storage_iterator.go
while processing streams inprocessStream
function. It first creates a session and then read rows usingit.session.readRows
call. It checks for applicable error for retrying but weirdly no errors are returned here. It then consumes the stream usingit.consumeRowStream
call. I see the error being returned here but there is no retry classification logic here and it retries for all errors apart from context cancellation errors.Here is the error msg that I see:
The text was updated successfully, but these errors were encountered: