This is an automated email from the ASF dual-hosted git repository.
yao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new a6777fe [KYUUBI #1281] [BUG] Prettify error message from engine log.
a6777fe is described below
commit a6777fea3f9510f9f5cdfad057fdca32f58fd751
Author: Jagadesh Adireddi <[email protected]>
AuthorDate: Mon Nov 1 09:58:12 2021 +0800
[KYUUBI #1281] [BUG] Prettify error message from engine log.
### _Why are the changes needed?_
Prettify error message from engine log.
### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including
negative and positive cases if possible
- [ ] Add screenshots for manual tests if appropriate
- [ ] [Run
test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests)
locally before make a pull request
Closes #1316 from jadireddi/1281-prettyify.
Closes #1281
ae0de364 [Jagadesh Adireddi] [KYUUBI #1281] [BUG] Prettify error message
from engine log.
Authored-by: Jagadesh Adireddi <[email protected]>
Signed-off-by: Kent Yao <[email protected]>
---
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ProcBuilder.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ProcBuilder.scala
b/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ProcBuilder.scala
index c04c4c9..e791391 100644
--- a/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ProcBuilder.scala
+++ b/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ProcBuilder.scala
@@ -191,7 +191,7 @@ trait ProcBuilder {
error match {
case UNCAUGHT_ERROR =>
KyuubiSQLException(s"Failed to detect the root cause, please check
$engineLog at server " +
- s"side if necessary. The last $engineLogMaxLines line(s) of log is:
" +
+ s"side if necessary. The last $engineLogMaxLines line(s) of log
are:\n" +
s"${lastRowsOfLog.toArray.mkString("\n")}")
case other => other
}