This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
commit c0231b1abfbf0d2b1ae5511ef003454be56eac9a Author: Yongqiang YANG <[email protected]> AuthorDate: Mon Apr 3 08:56:54 2023 +0800 [improvement](test) print exception when streamload fails (#18315) --- .../org/apache/doris/regression/action/StreamLoadAction.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/regression-test/framework/src/main/groovy/org/apache/doris/regression/action/StreamLoadAction.groovy b/regression-test/framework/src/main/groovy/org/apache/doris/regression/action/StreamLoadAction.groovy index 18a54d1e15..cfbf961ac2 100644 --- a/regression-test/framework/src/main/groovy/org/apache/doris/regression/action/StreamLoadAction.groovy +++ b/regression-test/framework/src/main/groovy/org/apache/doris/regression/action/StreamLoadAction.groovy @@ -148,7 +148,9 @@ class StreamLoadAction implements SuiteAction { ex = t } long endTime = System.currentTimeMillis() - log.info("Stream load elapsed ${endTime - startTime} ms".toString()) + + log.info("Stream load elapsed ${endTime - startTime} ms, response: ${responseText}".toString() + + ex.toString()) checkResult(responseText, ex, startTime, endTime) } @@ -193,6 +195,7 @@ class StreamLoadAction implements SuiteAction { int code = resp.getStatusLine().getStatusCode() if (code != HttpStatus.SC_OK) { String streamBody = EntityUtils.toString(resp.getEntity()) + log.info("Fail to download data ${url}, code: ${code}, body:\n${streamBody}") throw new IllegalStateException("Get http stream failed, status code is ${code}, body:\n${streamBody}") } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
