Repository navigation
[flink] Centralize action factory registration in flink-common - #5407
Merged
Merged
Conversation
Ship the ActionFactory service descriptor with the common implementations so downstream connectors inherit both built-in actions. Keep Flink 1.18's local descriptor and exclude the common descriptor during shading to avoid registering the unsupported orphan cleanup action. Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 62/62 AI-Contributed/UT: 0/0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Linked issue: Part of #4846; follow-up to #5400.
Action implementations live in
fluss-flink-common, but their ServiceLoader registrations are only shipped by the version-specific connectors. Downstream connectors that depend on common must repeat these registrations to discover the actions.Ship the registrations with the common implementations while keeping orphan cleanup excluded from the Flink 1.18 connector.
Brief change log
ActionFactoryservice descriptor tofluss-flink-commonand remove duplicate descriptors from Flink 1.19, 1.20, 2.2 and 2.3.Tests
./mvnw package -t /tmp/fluss-commit-toolchains.xml -pl fluss-flink/fluss-flink-1.18,fluss-flink/fluss-flink-1.20 -am -DskipTests -Dmaven.jar.forceCreation=true. Checkstyle, Spotless and license checks passed.FlussActionEntrypoint --helpfrom both packaged connector JARs. Flink 1.18 lists onlyload_lake_data_to_fluss; Flink 1.20 lists it andremove_orphan_files.The full test suite was not run; this change only relocates service metadata and adjusts the Flink 1.18 shading filter.
API and Format
No API or storage format changes. ServiceLoader metadata is now included in the common artifact; supported actions in the packaged version-specific connectors remain unchanged.
Documentation
No new action or option. No user documentation changes needed.