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 |
damccorm
left a comment
There was a problem hiding this comment.
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
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)