ppkarwasz opened a new pull request, #24: URL: https://github.com/apache/logging-flume-rpc/pull/24
The Avro protocol classes generated from `flume.avdl` (`AvroSourceProtocol`, `AvroFlumeEvent` and `Status`) occupied the `org.apache.flume.source.avro` package, so `AvroSource` had to live in the unnatural `org.apache.flume.source.avro.server` package. This PR: - moves the protocol to the `org.apache.flume.avro` namespace; - moves `AvroSource` (and its tests) back to `org.apache.flume.source.avro`; - updates the spotbugs exclusions for the generated classes and the changelog. ## Wire compatibility The wire format is unchanged, but Avro before 1.11.1 compares enum names including their namespace ([AVRO-3133](https://issues.apache.org/jira/browse/AVRO-3133)). I tested this with the real Flume 1.11.0 `NettyAvroRpcClient` and `AvroSource` against this branch, with each side in its own JVM: | Client → Server | Result | |---|---| | Flume 2.x → Flume 1.11.0 (Avro 1.11.0) | ✅ `append` and `appendBatch` | | Flume 1.11.0 (Avro 1.11.0) → Flume 2.x | ❌ `AvroTypeException: Found org.apache.flume.avro.Status, expecting org.apache.flume.source.avro.Status`, after the source has already accepted the event | | Flume 1.11.0 with Avro 1.11.1 → Flume 2.x | ✅ | Adding `@aliases` for the old names would not help: Avro only uses the reader's aliases, and here the reader is the unmodified 1.11.0 client. The requirement for Flume 1.x clients to upgrade to Avro 1.11.1+ is documented in the changelog entry and in the user guide. ## Companion change in `apache/logging-flume` `SourceType.AVRO` in `flume-core` still points to `org.apache.flume.source.avro.server.AvroSource`, so the `avro` type alias needs a matching change there, together with the user guide section on Avro compatibility. That change is not part of this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
