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

[BEAM-13321] Fix exception with BigQuery StreamWriter TraceID. #16599

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

youngoli
Copy link
Contributor

When running a BigQuery IO transform with a query and query location set, was given the exception: "java.lang.IllegalArgumentException: TraceId must follow the format of A:B. Actual:Dataflow". Documentation shows an example of using it with the format "Dataflow:job_id" which is what I changed this to: https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1.StreamWriter.Builder#com_google_cloud_bigquery_storage_v1_StreamWriter_Builder_setTraceId_java_lang_String_


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

ValidatesRunner compliance status (on master branch)

Lang ULR Dataflow Flink Samza Spark Twister2
Go --- Build Status Build Status Build Status Build Status ---
Java Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Python --- Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status ---
XLang Build Status Build Status Build Status Build Status Build Status ---

Examples testing status on various runners

Lang ULR Dataflow Flink Samza Spark Twister2
Go --- --- --- --- --- --- ---
Java --- Build Status
Build Status
Build Status
--- --- --- --- ---
Python --- --- --- --- --- --- ---
XLang --- --- --- --- --- --- ---

Post-Commit SDK/Transform Integration Tests Status (on master branch)

Go Java Python
Build Status Build Status Build Status
Build Status
Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website Whitespace Typescript
Non-portable Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status Build Status
Portable --- Build Status Build Status --- --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

When running a BigQuery IO transform with a query and query location set, was given the exception: "java.lang.IllegalArgumentException: TraceId must follow the format of A:B. Actual:Dataflow". Documentation shows an example of using it with the format "Dataflow:job_id" which is what I changed this to: https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/com.google.cloud.bigquery.storage.v1.StreamWriter.Builder#com_google_cloud_bigquery_storage_v1_StreamWriter_Builder_setTraceId_java_lang_String_
@youngoli
Copy link
Contributor Author

R: @chamikaramj @ihji (Whoever gets to it first)

@chamikaramj
Copy link
Contributor

Seems like this was added recently in #16347.

@yirutang can you take a look ?

Also, should this be cherry-picked to the release ?

@chamikaramj
Copy link
Contributor

cc: @reuvenlax

@yirutang
Copy link
Contributor

yirutang commented Jan 26, 2022 via email

@chamikaramj
Copy link
Contributor

Is this a general breakage in the STORAGE_WRITE_API mode when using BQ sink ? In that case we should cherry-pick to the ongoing release.

@yirutang
Copy link
Contributor

yirutang commented Jan 26, 2022 via email

@chamikaramj
Copy link
Contributor

Thanks. cc: @emilymye

@chamikaramj
Copy link
Contributor

Created cherry-pick #16616

@chamikaramj
Copy link
Contributor

@yirutang also noting that we don't have integration testing for STORAGE_WRITE_API write mode which should have caught this early. Also mentioned in https://issues.apache.org/jira/browse/BEAM-11648.

@yirutang
Copy link
Contributor

yirutang commented Jan 26, 2022 via email

@chamikaramj
Copy link
Contributor

Created https://issues.apache.org/jira/browse/BEAM-13747 with some info.
Our team may not have time to work on this immediately so appreciate if you or Reuven can add this.

@yirutang
Copy link
Contributor

yirutang commented Jan 26, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants