Skip to content

Commit 5e5457c

Browse files
committed
fix: patch Flink 1.19+ correctly
1 parent 2be57e4 commit 5e5457c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/mig-test/misc/patch_flink_conf.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
execution.checkpointing.interval: 300
2727
EXTRACONF
2828

29-
File.write("#{FLINK_HOME}/conf/flink-conf.yaml", EXTRA_CONF, mode: 'a+')
29+
if File.file?("#{FLINK_HOME}/conf/flink-conf.yaml")
30+
File.write("#{FLINK_HOME}/conf/flink-conf.yaml", EXTRA_CONF, mode: 'a+')
31+
else
32+
File.write("#{FLINK_HOME}/conf/config.yaml", EXTRA_CONF, mode: 'a+')
33+
end
3034

3135
# MySQL connector is not provided
3236
`wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.27/mysql-connector-java-8.0.27.jar -O #{FLINK_HOME}/lib/mysql-connector-java-8.0.27.jar`

0 commit comments

Comments
 (0)