Skip to content

Remove the split packages - #526

Merged
rgoers merged 3 commits into
trunkfrom
feat/merge-sdk-into-core
Nov 9, 2026
Merged

rgoers merged 3 commits into
trunkfrom
feat/merge-sdk-into-core

Conversation

@ppkarwasz

Copy link
Copy Markdown
Member

flume-sdk, flume-configuration and flume-core shared the org.apache.flume, conf, instrumentation and serialization packages, so the artifacts could not be used as JPMS modules. Almost every package mixes the plugin API with built-in components and runtime classes, so moving the plugin API into a separate artifact would have meant renaming many classes. Instead, this PR minimizes the changes compared to Flume 1.x:

  • flume-sdk and flume-configuration are merged into flume-core, without renaming any class. Plugins and agents depend on flume-core, as they depended on flume-ng-core in 1.x.
  • flume-client is renamed to flume-sdk. In 1.x, client applications used flume-ng-sdk, the "Flume Client SDK" of the documentation, and no plugin depended on it without flume-ng-core. The API compatibility check now compares it with flume-ng-sdk 1.11.0.
  • The classes of the three remaining split packages move to new packages: SpillableMemoryChannel to org.apache.flume.channel.spillable, the environment variable and external process config filters to org.apache.flume.configfilter.env and .external, and the classes of org.apache.flume.tools in flume-core next to their users. flume-tools and flume-config-filter-api keep their packages. The spillablememory, env, external and hadoop aliases point to the new names.

BasicTransactionSemantics.put() and take() become public, since the spillable memory channel calls them on the file channel's transactions from another package. No subclass in this repository or the satellites overrides them.

Follow-ups:

  • apache/logging-flume-hadoop must move HadoopCredentialStoreConfigFilter to org.apache.flume.configfilter.hadoop, which the hadoop alias now points to.
  • The satellites must replace their flume-configuration dependencies and the plugin-API uses of flume-sdk with flume-core, and flume-client with flume-sdk.

🤖 Generated with Claude Code

The three artifacts shared the `org.apache.flume`, `conf`, `instrumentation` and `serialization` packages, which JPMS rejects. Almost every package mixes the plugin API with built-in components and runtime classes, so merging the artifacts fixes the split without renaming any class.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
In Flume 1.x, client applications used `flume-ng-sdk`, the "Flume Client SDK" of the documentation, and no plugin depended on it without `flume-ng-core`. Now that the plugin API lives in `flume-core`, the client API can take over the `flume-sdk` coordinates.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
`flume-core` still shared `org.apache.flume.channel` with the spillable memory channel and `org.apache.flume.tools` with `flume-tools`, and the config filter implementations shared `org.apache.flume.configfilter` with their API. `flume-tools` and `flume-config-filter-api` keep their packages; the other classes move next to their users. `BasicTransactionSemantics.put()` and `take()` become public, since the spillable memory channel calls them on the file channel's transactions from another package.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@rgoers
rgoers merged commit 50e1621 into trunk Nov 9, 2026
12 checks passed
@rgoers
rgoers deleted the feat/merge-sdk-into-core branch November 9, 2026 01:01
rgoers pushed a commit to apache/logging-flume-rpc that referenced this pull request Nov 9, 2026
* Depend on the Flume core artifacts of apache/logging-flume#526

`flume-sdk` and `flume-configuration` were merged into `flume-core`, and `flume-client` took over the `flume-sdk` coordinates, so the clients depend on `flume-sdk` and the other modules on `flume-core`.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>

* Remove the empty lines left by the dropped dependencies

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants