Skip to content

Commit de08160

Browse files
committed
add log for table not exist in truncate
1 parent 708589c commit de08160

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,9 @@ private static TableEntry getTableEntryFromResultSet(TableEntryKey key, ResultSe
14331433
Long tableId = null;
14341434
Long schemaVersion = null;
14351435
List<ReplicaLocation> replicaLocations = new ArrayList<ReplicaLocation>(3);
1436+
if (!rs.isBeforeFirst()) {
1437+
logger.error("[table not exist test] cannot find any location for this tenant, tenantName: {}, tableName: {}, databaseName: {}", key.getTenantName(), key.getTableName(), key.getDatabaseName());
1438+
}
14361439
while (rs.next()) {
14371440
ReplicaLocation replica = buildReplicaLocation(rs);
14381441
tableId = rs.getLong("table_id");

0 commit comments

Comments
 (0)