You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/01/21 10:45:32 UTC
[GitHub] [incubator-doris] weizuo93 commented on a change in pull request #7832: [Bug] Fix bug that wrong exception message returned by insert statement
weizuo93 commented on a change in pull request #7832:
URL: https://github.com/apache/incubator-doris/pull/7832#discussion_r789551680
##########
File path: fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
##########
@@ -1248,10 +1248,15 @@ private void handleInsertStmt() throws Exception {
coord.exec();
- coord.join(context.getSessionVariable().getQueryTimeoutS());
+ boolean notTimeout = coord.join(context.getSessionVariable().getQueryTimeoutS());
if (!coord.isDone()) {
coord.cancel();
- ErrorReport.reportDdlException(ErrorCode.ERR_EXECUTE_TIMEOUT);
+ if (notTimeout) {
+ ErrorReport.reportDdlException(ErrorCode.ERR_UNHEALTHY_BACKEND_EXISTS);
Review comment:
> Or can you print out the wrong backend id through the error code
OK, thanks for your review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org