Skip to content

[cdc-composer] Add integration test for FlinkPipelineComposer#2776

Merged
leonardBang merged 3 commits intoapache:masterfrom
PatrickRen:add-composer-it-case
Dec 2, 2023
Merged

[cdc-composer] Add integration test for FlinkPipelineComposer#2776
leonardBang merged 3 commits intoapache:masterfrom
PatrickRen:add-composer-it-case

Conversation

@PatrickRen
Copy link
Copy Markdown
Contributor

This pull request adds integration test for FlinkPipelineComposer

@PatrickRen
Copy link
Copy Markdown
Contributor Author

@lvyanquan Could you take a look at this one? Thanks!

Copy link
Copy Markdown
Contributor

@lvyanquan lvyanquan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@leonardBang
Copy link
Copy Markdown
Contributor

@PatrickRen Could you check the CI failure?

new MiniClusterExtension(
new MiniClusterResourceConfiguration.Builder()
.setNumberTaskManagers(1)
.setNumberSlotsPerTaskManager(MAX_PARALLELISM)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to make ValuesDatabase class load by AppClassloader to avoid unexpected results.

    static final org.apache.flink.configuration.Configuration configuration = new org.apache.flink.configuration.Configuration();

    static {
        configuration.set(ALWAYS_PARENT_FIRST_LOADER_PATTERNS_ADDITIONAL, Collections.singletonList("com.ververica.cdc"));
    }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change this part and add some tests @PatrickRen

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lvyanquan Thanks for the solution! I think as a temporary solution this is OK. Maybe we can make some improvements for the ValuesDatabase in the future, like let it lays in an operator coordinator, and we can get talk to it via ClusterClient#sendCoordinationRequest

@PatrickRen PatrickRen force-pushed the add-composer-it-case branch from ba1192c to 31761f8 Compare December 1, 2023 09:59
@PatrickRen PatrickRen force-pushed the add-composer-it-case branch from 31761f8 to 86d3065 Compare December 1, 2023 10:06
Copy link
Copy Markdown
Contributor

@leonardBang leonardBang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @PatrickRen and @lvyanquan for the contribution, CI passed, merging

@leonardBang leonardBang merged commit cc9d368 into apache:master Dec 2, 2023
e-mhui pushed a commit to e-mhui/flink-cdc-connectors that referenced this pull request Dec 2, 2023
ChaomingZhangCN pushed a commit to ChaomingZhangCN/flink-cdc that referenced this pull request Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants