-
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]: Python PostCommit failing due to duplicate AvroSchemaIO autoservice #25601
Comments
CC: @aromanenko-dev |
@aromanenko-dev this is currently the only known release blocker - do you think you'll be able to get a fix in quickly, or should we consider temporarily reverting #25534 (since if I understand correctly, that is the cause of the failures)? |
@Abacn @aromanenko-dev I was just looking at this as well. I agree with @aromanenko-dev that removing anything from core might be problematic. Though, also, it turns out that |
another quick fix for 2.46.0 would be remove the SchemaIOProvider AutoService in extension-avro, or even just comment out the |
@aromanenko-dev I think there's two more follow ups required:
|
|
Of course I'm talking about runtime ... Users won't ever directly interact with AvroSchemaIOProvider. Because of that they are not going to notice a deprecation warning at build time.
This isn't as simple ... AvroSchemaIOProvider exposes Avro sources in Beam SQL / xlang in a rather dynamic way to the user. |
Note that schemaio expansion-service does not depend on avro extension, but the uber jar includes it. I checked that unzip the jar |
I think this is why we have this issue actually. |
@mosche I added logging for providers registering. |
thx @Abacn, i checked a jar of an earlier version before the extension existed 🤦 |
@aromanenko-dev is there a reason not to cherry pick? Recutting isn't supported by the current scripts and might lead to issues. Plus, then we're scope creeping extra commits into the release. |
AFAICT none of the changes since the cut should prevent an easy cherry-pick |
If its just a matter of making time to do the CP promptly, I'm happy to help out there |
@damccorm Cherry-pick is ok, I just asked what is easier for you. |
Ok cool - thanks! |
Ok, so, let's wait for tests passed and if it's ok, I'll merge it. Then, we can cherry-pick it to release branch. |
I merged the PR and put up a cherry-pick, could someone please approve? |
Thanks @damccorm ! |
What happened?
Python PostCommit jdbcio_xlang_it_test failing. Jenkins log does not show much message, but running locally the actual error shows:
This is because there are two
@AutoService AvroSchemaIOProvider
classes so the schemaio expansion service fails to start.The fix could either be similar to the workaround here:
beam/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/io/Providers.java
Line 45 in 011296c
Or simply remove AvroSchemaIOProvider in core.
Issue Failure
Failure: Test is continually failing
Issue Priority
Priority: 1 (unhealthy code / failing or flaky postcommit so we cannot be sure the product is healthy)
Issue Components
The text was updated successfully, but these errors were encountered: