-
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
Mark Avro as provided in harness JAR #29412
Conversation
Run Java PreCommit |
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment |
Run Java PreCommit |
@aromanenko-dev, can I get your thoughts here if including Avro on |
@bvolpato I guess it was added while working on removing Avro from "core" and some tests were failed because of this. If your PR fixes this - it's perfect! |
java precommit currently fails unrelated issue on ":sdks:java:container:goBuild" |
The precommit failure on Actions looks more real:
|
@bvolpato I think we need an extra |
I think it should be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - merging since the Jenkins issue is unrelated (due to the version of Go we have installed on our jenkins machines)
* Mark Avro as provided in harness JAR * Add permitUnusedDeclared for Avro
* Mark Avro as provided in harness JAR * Add permitUnusedDeclared for Avro Co-authored-by: Bruno Volpato <[email protected]>
Bug: #29413
After #27851, user code that depends on versions newer than Avro 1.8.2 are having problems running on Dataflow.
For example in https://github.com/GoogleCloudPlatform/DataflowTemplates, where we moved on to Avro 1.11.3, there were incompatibility errors:
and
The root cause is that Avro classes are now being shipped along with the
/opt/apache/beam/jars/beam-sdks-java-harness.jar
, which wasn't the case before.Mark Avro as provided should solve the problem and allow users to control their Avro.
(Tried to relocate in #29407 but got some test failures, so trying this as an alternative)