-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Failing Test]: beam_PreCommit_Python_Cron failing TestWriteBigTable.test_write_metrics #26673
Comments
Change to P1 because this is a precommit permared |
Found the cause: google-cloud-bigtable==2.18.0 breaks the test: To reproduce: in sdks/python run command:
|
With google-cloud-bigtable=2.18.0, query runner api monitoring infos returns an empty dict here: WIth google-cloud-bigtable=2.17.0,
|
mitigated by excluding the certain version. Remain open to investigate the root cause (either a client bug or intended client change that can be solved by changing the test). |
looks like this error reappeared this morning. |
Caused by google-cloud-bigquery==2.18.1 |
fwiw we should be able to |
For now we should pin |
@tvalentyn the cause is known due to the commit that got reverted. Reverting that PR the beam test passes. The new tag 2.18.1 is identical to 2.18.0 It contains the two commit:
Possible some miscommunication |
opened #26717 |
thanks a lot, do we need to open an issue in https://github.com/googleapis/python-bigtable/issues? |
Yeah, I planned to do. Also notified bigtable maintainers. I wished to extract a minimum working example showing what previously worked now break, from the unit test, just haven't get into it |
The cause is the member MutationsBatcher.rows changed its name to MutationsBatcher._rows in googleapis/python-bigtable#722 , so
is always false. In detail, Beam extends the client |
given that we pre install this IO dep in containers, would our users be affected? |
in other words, does this matter also at job submission or only at runtime? |
Users using our published containers won't get affected (e.g. typical Dataflow use case) as it pre-installed google-cloud-bigtable < 2.18 Users build custom container after May 10 will be affected (google-cloud-bigtable 2.18 added to the container) Should only affects run time. |
Thanks @Abacn for looking into this. We're not sure why bigtableio.py overrides MutationsBatcher. I wonder if using the batcher from python client here:
|
Yeah, deriving from client MutationsBatcher sounds not a good idea to me either, especially in Python where class is too flexible |
I think the _MutationBatcher wrapper was created because of 2 reasons:
The first issue is fixed in the 2.18.0 client. So we shouldn't need to wrap the MutationBatcher anymore. We can get the exception count from https://github.com/googleapis/python-bigtable/blob/main/google/cloud/bigtable/batcher.py#L382 and update the metrics in finishBundle. I'll work on a fix soon! |
What happened?
Permared since May 10.
Error message: https://ci-beam.apache.org/view/PostCommit/job/beam_PreCommit_Python_Cron/lastCompletedBuild/testReport/apache_beam.io.gcp.bigtableio_test/TestWriteBigTable/test_write_metrics/
No code change involved. Also, checkout a snapshot prior to May 10 and run this test locally:
it fails for the same reason.
Likely due to Bigtable service change
Issue Failure
Failure: Test is flaky
Issue Priority
Priority: 2 (backlog / disabled test but we think the product is healthy)
Issue Components
The text was updated successfully, but these errors were encountered: