Skip to content

Commit

Permalink
fix the HBase command reports an error, but the client returns success (
Browse files Browse the repository at this point in the history
#5065)

* Remove the EC lifespan restriction parameter.

* If the command result contains "ERROR," the execution outcome is considered a failure.

* To prevent the inclusion of the "ERROR" field in the query results, add an additional filtering condition
  • Loading branch information
sjgllgh authored Jan 16, 2024
1 parent 6736fed commit e79b59d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ private Result executeCmd(String cmd) {
if (StringUtils.isBlank(res) && o != null) {
res = o.toString();
}
if (res.contains("ERROR: ") && res.contains("For usage try 'help")) {
return Result.failed(getStackTrace(new Throwable(new Exception(res))), new Exception(res));
}
return Result.ok(res);
} catch (Exception e) {
return Result.failed(getStackTrace(e), e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ wds.linkis.engineconn.plugin.default.class=org.apache.linkis.manager.engineplugi
#wds.linkis.engine.io.opts=" -Dfile.encoding=UTF-8 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=49100 "
wds.linkis.engineconn.support.parallelism=true
wds.linkis.rpc.cache.expire.time=0
wds.linkis.engineconn.max.free.time=0
#wds.linkis.engineconn.max.free.time=0

0 comments on commit e79b59d

Please sign in to comment.