This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new aeb89db2a57 [bugfix](testcase)add java error log output (#35998) aeb89db2a57 is described below commit aeb89db2a5717dd2faf0bc07aaec5cd9a1668f7b Author: wuwenchi <wuwenchi...@hotmail.com> AuthorDate: Fri Jun 28 21:56:43 2024 +0800 [bugfix](testcase)add java error log output (#35998) In the testcase pipeline, this spark-connector case has a 4% chance of error, but since there is no error log, the cause of the error cannot be located. Therefore, an error log is added to facilitate problem location later. --- .../suites/connector_p0/spark_connector/spark_connector.groovy | 10 ++++++++-- .../connector_p0/spark_connector/spark_connector_arrow.groovy | 10 ++++++++-- .../spark_connector/spark_connector_read_type.groovy | 10 ++++++++-- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/regression-test/suites/connector_p0/spark_connector/spark_connector.groovy b/regression-test/suites/connector_p0/spark_connector/spark_connector.groovy index ecd4e6dfc14..2bd618fcc3c 100644 --- a/regression-test/suites/connector_p0/spark_connector/spark_connector.groovy +++ b/regression-test/suites/connector_p0/spark_connector/spark_connector.groovy @@ -28,7 +28,13 @@ suite("spark_connector", "connector") { logger.info("finish download spark doris demo ...") def run_cmd = "java -jar spark-doris-demo.jar $context.config.feHttpAddress $context.config.feHttpUser regression_test_connector_p0_spark_connector.$tableName" logger.info("run_cmd : $run_cmd") - def run_spark_jar = run_cmd.execute().getText() - logger.info("result: $run_spark_jar") + def proc = run_cmd.execute() + def sout = new StringBuilder() + def serr = new StringBuilder() + proc.consumeProcessOutput(sout, serr) + proc.waitForOrKill(1200_000) + if (proc.exitValue() != 0) { + logger.warn("failed to execute jar: code=${proc.exitValue()}, " + "output: ${sout.toString()}, error: ${serr.toString()}") + } qt_select """ select * from $tableName order by order_id""" } diff --git a/regression-test/suites/connector_p0/spark_connector/spark_connector_arrow.groovy b/regression-test/suites/connector_p0/spark_connector/spark_connector_arrow.groovy index 1cd2ed31d2e..a5fbc3b2835 100644 --- a/regression-test/suites/connector_p0/spark_connector/spark_connector_arrow.groovy +++ b/regression-test/suites/connector_p0/spark_connector/spark_connector_arrow.groovy @@ -136,8 +136,14 @@ suite("spark_connector_for_arrow", "connector") { logger.info("finish download spark doris demo ...") def run_cmd = "java -cp ${jar_name} org.apache.doris.spark.testcase.TestStreamLoadForArrowType $context.config.feHttpAddress $context.config.feHttpUser regression_test_connector_p0_spark_connector" logger.info("run_cmd : $run_cmd") - def run_spark_jar = run_cmd.execute().getText() - logger.info("result: $run_spark_jar") + def proc = run_cmd.execute() + def sout = new StringBuilder() + def serr = new StringBuilder() + proc.consumeProcessOutput(sout, serr) + proc.waitForOrKill(1200_000) + if (proc.exitValue() != 0) { + logger.warn("failed to execute jar: code=${proc.exitValue()}, " + "output: ${sout.toString()}, error: ${serr.toString()}") + } qt_q01 """ select * from spark_connector_primitive """ qt_q02 """ select * from spark_connector_array """ diff --git a/regression-test/suites/connector_p0/spark_connector/spark_connector_read_type.groovy b/regression-test/suites/connector_p0/spark_connector/spark_connector_read_type.groovy index 32a3ebf68c7..632e5e3d401 100644 --- a/regression-test/suites/connector_p0/spark_connector/spark_connector_read_type.groovy +++ b/regression-test/suites/connector_p0/spark_connector/spark_connector_read_type.groovy @@ -99,8 +99,14 @@ suite("spark_connector_read_type", "connector") { logger.info("finish download spark doris demo ...") def run_cmd = "java -jar spark-doris-read.jar $context.config.feHttpAddress $context.config.feHttpUser regression_test_connector_p0_spark_connector.$tableReadName regression_test_connector_p0_spark_connector.$tableWriterName" logger.info("run_cmd : $run_cmd") - def run_spark_jar = run_cmd.execute().getText() - logger.info("result: $run_spark_jar") + def proc = run_cmd.execute() + def sout = new StringBuilder() + def serr = new StringBuilder() + proc.consumeProcessOutput(sout, serr) + proc.waitForOrKill(1200_000) + if (proc.exitValue() != 0) { + logger.warn("failed to execute jar: code=${proc.exitValue()}, " + "output: ${sout.toString()}, error: ${serr.toString()}") + } qt_select """ select * from $tableWriterName order by id""" --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org