From 439c85f7b24bfbff4e7608ccafe585c9a5afcceb Mon Sep 17 00:00:00 2001 From: yangwenzea <1013195908@qq.com> Date: Thu, 19 Oct 2023 15:29:35 +0800 Subject: [PATCH] fix gc log bug --- .../engineconnplugin/flink/util/FlinkValueFormatUtil.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkis-engineconn-plugins/flink/flink-core/src/main/scala/org/apache/linkis/engineconnplugin/flink/util/FlinkValueFormatUtil.scala b/linkis-engineconn-plugins/flink/flink-core/src/main/scala/org/apache/linkis/engineconnplugin/flink/util/FlinkValueFormatUtil.scala index e396797fe8..cf84e2aed2 100644 --- a/linkis-engineconn-plugins/flink/flink-core/src/main/scala/org/apache/linkis/engineconnplugin/flink/util/FlinkValueFormatUtil.scala +++ b/linkis-engineconn-plugins/flink/flink-core/src/main/scala/org/apache/linkis/engineconnplugin/flink/util/FlinkValueFormatUtil.scala @@ -57,12 +57,12 @@ object FlinkValueFormatUtil { var replaceStr1 = "" var replaceStr2 = "" if (xloggcValueStr1.nonEmpty && xloggcValueStr2.nonEmpty) { - escapedXloggcValue = xloggcValueStr2.replace("<", "\\<").replace(">", "\\>") + escapedXloggcValue = xloggcValueStr2.replace("\\<", "<").replace("\\>", ">") replaceStr1 = defaultJavaOpts.replace(xloggcValueStr1, escapedXloggcValue) replaceStr2 = envJavaOpts.replace(xloggcValueStr2, "") } if (xloggcValueStr1.nonEmpty && xloggcValueStr2.isEmpty) { - escapedXloggcValue = xloggcValueStr1.replace("<", "\\<").replace(">", "\\>") + escapedXloggcValue = xloggcValueStr1.replace("\\<", "<").replace("\\>", ">") replaceStr1 = defaultJavaOpts.replace(xloggcValueStr1, escapedXloggcValue) replaceStr2 = envJavaOpts }