Skip to content

Commit 2279265

Browse files
committed
modify error message when use wrong index name
1 parent be12431 commit 2279265

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/alipay/oceanbase/rpc/location/LocationUtil.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,12 +1016,11 @@ public static ObIndexInfo getIndexInfoFromRemote(ObServerAddr obServerAddr, ObUs
10161016
indexInfo.setIndexTableId(rs.getLong("table_id"));
10171017
indexInfo.setIndexType(ObIndexType.valueOf(rs.getInt("index_type")));
10181018
} else {
1019-
throw new ObTableEntryRefreshException(
1020-
"fail to get index info from remote, result set is empty");
1019+
throw new ObTableEntryRefreshException("index is not exist");
10211020
}
10221021
} catch (Exception e) {
10231022
throw new ObTableEntryRefreshException(format(
1024-
"fail to get index info from remote, indexTableName: %s", indexTableName), e);
1023+
"fail to get index info from remote, indexTableName: %s, error message: %s", indexTableName, e.getMessage()), e);
10251024
} finally {
10261025
try {
10271026
if (null != rs) {

0 commit comments

Comments
 (0)