cherry pick from #41456
This commit is contained in:
@ -1427,15 +1427,6 @@ public class Coordinator implements CoordInterface {
|
||||
} else {
|
||||
String errMsg = copyStatus.getErrorMsg();
|
||||
LOG.warn("query failed: {}", errMsg);
|
||||
|
||||
// hide host info exclude localhost
|
||||
if (errMsg.contains("localhost")) {
|
||||
throw new UserException(errMsg);
|
||||
}
|
||||
int hostIndex = errMsg.indexOf("host");
|
||||
if (hostIndex != -1) {
|
||||
errMsg = errMsg.substring(0, hostIndex);
|
||||
}
|
||||
throw new UserException(errMsg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user