Skip to content

Commit

Permalink
correct holdTime when fetchAll is true when refreshing tableEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
JackShi148 committed Jan 2, 2025
1 parent bbdb4f8 commit f0c5cfc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/alipay/oceanbase/rpc/ObTableClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,12 @@ public TableEntry getOrRefreshTableEntry(final String tableName, final boolean r
if ((fetchAll && (fetchAllInterval < punishInterval))
|| (!fetchAll && (interval < punishInterval))) {
if (waitForRefresh) {
long toHoldTime = punishInterval - interval;
long toHoldTime;
if (fetchAll) {
toHoldTime = punishInterval - fetchAllInterval;
} else {
toHoldTime = punishInterval - interval;
}
logger
.info(
"punish table entry {} : table entry refresh time {} punish interval {} current time {}. wait for refresh times {}",
Expand Down

0 comments on commit f0c5cfc

Please sign in to comment.