apache / beam

Apache Beam is a unified programming model for Batch and Streaming data processing.
https://beam.apache.org/
Apache License 2.0
7.83k stars 4.24k forks source link

[Bug]: vendored jars leak proto #32758

Open Abacn opened 1 week ago

Abacn commented 1 week ago

What happened?

Beam vendors a few dependencies (grpc, guava). These vendored dependency jars have package namespace shaded ( -> org/apache/beam/vendor/) so it won't leak classes. However this repackage does not contain protos, as a result, it still leaks proto sources

For example, in org.apache.beam » beam-vendor-grpc-1_60_1 » 0.2:

beam-vendor-grpc-1_60_1-0.2
|-grpc
|  |-google
|  |  |-api
|  |  |  |-field_behavior.proto
...

Protobuf error

@zhumin8 created a reproducer with Protobuf Gradle plugin where it gets protoc: stdout: . stderr: sample.proto:6:52: Enum type "google.api.FieldBehavior" has no value named "IDENTIFIER" for option "google.api.field_behavior":

https://github.com/zhumin8/cloud-opensource-java/tree/test/boms/test-gradle

Issue Priority

Priority: 2 (default / most bugs should be filed as P2)

Issue Components

Abacn commented 1 week ago

marked as 2.62.0 release blocker (cut on Dec 18, 2024)

suztomo commented 1 week ago

Added "Protobuf error" section in the description.