Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-34969][cdc-cli]Add support for both new and old Flink config files in Flink… #3194

Merged
merged 6 commits into from
Apr 23, 2024

Conversation

skymilong
Copy link
Contributor

This commit introduces a simple logic check within the Flink CDC codebase to enable support for both the new (config.yaml) and old (flink-conf.yaml) Flink configuration file standards. By utilizing the Files.exists method, Flink CDC now first checks for the presence of config.yaml in the system. If config.yaml is found, it is used as the configuration file. Otherwise, Flink CDC falls back to using flink-conf.yaml. This enhancement ensures that Flink CDC can seamlessly transition between different versions of Flink, maintaining backward compatibility and facilitating easier upgrades for users.

@github-actions github-actions bot added the cli label Mar 25, 2024
@PatrickRen
Copy link
Contributor

@skymilong Thanks for the PR! According to the code contribution rule of Apache Flink, could you create an issue on Jira for this and include the Jira ID in the PR title and commit message? You can take #3160 as an example.

And the PR has code formatting issue. Please run mvn spotless:apply before pushing your commits.

Thanks!

@skymilong
Copy link
Contributor Author

@skymilong Thanks for the PR! According to the code contribution rule of Apache Flink, could you create an issue on Jira for this and include the Jira ID in the PR title and commit message? You can take #3160 as an example.

And the PR has code formatting issue. Please run mvn spotless:apply before pushing your commits.

Thanks!

Thanks a bunch for your help. This is my first rodeo contributing code on GitHub, so I'm still trying to get the hang of things. I'll whip up a Jira issue like you suggested and pop the ID into the PR and commit messages. Also, I'll iron out those code formatting kinks. I'll get on it pronto and get the PR updated.
Appreciate your patience and all your help.

@PatrickRen
Copy link
Contributor

@skymilong Welcome to the community! Feel free to ask any questions

Copy link

@laglangyue laglangyue left a comment

Choose a reason for hiding this comment

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

LGTM

@skymilong skymilong changed the title [cdc-cli]Add support for both new and old Flink config files in Flink… [FLINK-34969][cdc-cli]Add support for both new and old Flink config files in Flink… Mar 30, 2024
Copy link
Contributor

@PatrickRen PatrickRen left a comment

Choose a reason for hiding this comment

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

@skymilong Thanks for the update! I left a comment.

Copy link
Contributor

@PatrickRen PatrickRen left a comment

Choose a reason for hiding this comment

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

@skymilong Thanks for the update! I left some comments.

Copy link
Contributor

@PatrickRen PatrickRen left a comment

Choose a reason for hiding this comment

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

@skymilong Thanks for the update! I left a comment.

@github-actions github-actions bot removed the common label Apr 15, 2024
@PatrickRen
Copy link
Contributor

@skymilong Thanks for the update! Could you rebase the latest master branch? I just merged a commit for fixing unstable CI tests

zh added 6 commits April 22, 2024 12:30
- Add a new utility class `YamlParserUtils` for parsing YAML files. This class leverages the `snakeyaml` library to provide robust and flexible parsing capabilities.
- Rename the method `loadMapFormattedConfig` to `loadConfigFile` in the `ConfigurationUtils` class to better reflect its purpose.
- Improve the `loadConfigFile` method to handle configurations that include lists, in addition to maps.

Note: This commit adds a new dependency on `snakeyaml` version 2.6.
Copy link
Contributor

@PatrickRen PatrickRen left a comment

Choose a reason for hiding this comment

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

@skymilong Thanks for the update! LGTM

@PatrickRen PatrickRen merged commit 2103226 into apache:master Apr 23, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants