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

[minor][cdc] Suppress false alarm in flink config loader #3292

Merged
merged 1 commit into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.FileNotFoundException;
import java.nio.file.Path;
import java.util.List;

Expand All @@ -38,13 +37,9 @@ public class FlinkEnvironmentUtils {

public static Configuration loadFlinkConfiguration(Path flinkHome) throws Exception {
Path flinkConfPath = flinkHome.resolve(FLINK_CONF_DIR).resolve(FLINK_CONF_FILENAME);
try {
if (flinkConfPath.toFile().exists()) {
return ConfigurationUtils.loadConfigFile(flinkConfPath);
} catch (FileNotFoundException e) {
LOG.warn(
"Failed to load the configuration file from {}. Trying to use legacy YAML parser to load flink configuration file from {}.",
FLINK_CONF_FILENAME,
LEGACY_FLINK_CONF_FILENAME);
} else {
return ConfigurationUtils.loadConfigFile(
flinkHome.resolve(FLINK_CONF_DIR).resolve(LEGACY_FLINK_CONF_FILENAME), true);
}
Expand Down
Loading