Skip to content

Commit f9b5113

Browse files
committed
add log
1 parent 6320401 commit f9b5113

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/alipay/oceanbase/rpc/ObTableClient.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,7 @@ public ObPair<Long, ObTableParam> getTableInternal(String tableName, TableEntry
20412041
syncRefreshMetadata(true);
20422042
// the addr is wrong, need to refresh location
20432043
if (logger.isInfoEnabled()) {
2044-
logger.warn("Cannot get ObTable by addr {}, refreshing metadata.", addr);
2044+
logger.info("Cannot get ObTable by addr {}, refreshing metadata.", addr);
20452045
}
20462046
// refresh tablet location based on the latest roster, in case that some of the observers hase been killed
20472047
// and used the old location
@@ -2061,6 +2061,7 @@ public ObPair<Long, ObTableParam> getTableInternal(String tableName, TableEntry
20612061
}
20622062
}
20632063
if (obTable == null) {
2064+
RUNTIME.error("cannot get table by addr: " + addr);
20642065
throw new ObTableGetException("obTable is null, addr is: " + addr.getIp() + ":" + addr.getSvrPort());
20652066
}
20662067
ObTableParam param = createTableParam(obTable, tableEntry, obPartitionLocationInfo, partId, tabletId);
@@ -2343,7 +2344,7 @@ private List<ObPair<Long, ObTableParam>> getTables(String tableName, ObTableQuer
23432344
syncRefreshMetadata(true);
23442345
// the addr is wrong, need to refresh location
23452346
if (logger.isInfoEnabled()) {
2346-
logger.warn("Cannot get ObTable by addr {}, refreshing metadata.", addr);
2347+
logger.info("Cannot get ObTable by addr {}, refreshing metadata.", addr);
23472348
}
23482349
// refresh tablet location based on the latest roster, in case that some of the observers hase been killed
23492350
// and used the old location

0 commit comments

Comments
 (0)