Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Failing Test]: BigqueryClient.queryUnflattened fails BigQuery ITs on a transient 503

Open Beginner friendly
#40,792 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@mxtymoshyk is already working on this.

Since Oct 25, 2026.

  • #40793 by @mxtymoshyk — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
77/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
google-cloud, java
Domain
databases, testing

Research direction

Start in BigqueryClient.queryUnflattened at BigqueryClient.java:345, then compare its polling and cleanup behavior with the retrying methods named in the issue, especially queryWithRetries. Check the BigQuery integration tests that call this method, including StorageApiDataTriggeredSchemaUpdateIT.verifyDataWritten; done means transient 503 responses are retried and the temporary dataset is cleaned up when the query returns no rows or throws.

Written by the indexing model from the issue text.

Description

beam_PreCommit_Java_GCP_IO_Direct_BigQuery failed on #40790 in StorageApiDataTriggeredSchemaUpdateIT.testDataTriggeredSchemaUpgradeExactlyOnce:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 Service Unavailable
GET https://bigquery.googleapis.com/bigquery/v2/projects/apache-beam-testing/queries/job_...
"reason": "backendError"
"message": "Error encountered during execution. Retrying may solve the problem."
    at org.apache.beam.sdk.io.gcp.testing.BigqueryClient.queryUnflattened(BigqueryClient.java:345)
    at org.apache.beam.sdk.io.gcp.bigquery.StorageApiDataTriggeredSchemaUpdateIT.verifyDataWritten(StorageApiDataTriggeredSchemaUpdateIT.java:367)

The pipeline had finished, and the test failed while checking its output. BigqueryClient.queryUnflattened polls jobs.getQueryResults with no retry, so a single 503 fails the test. The other BigqueryClient methods, such as createNewDataset, createNewTable and queryWithRetries, already retry with backoff. 12 test files call queryUnflattened.

queryUnflattened also leaves its temporary dataset behind when the query returns no rows or throws.

Failed job: https://github.com/apache/beam/actions/runs/40205636577/job/121205844102

Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
2d 5h
Merged PRs (30d)
290

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/beam

All issues in apache/beam

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.