Skip to content

Commit 93bf5c6

Browse files
committed
fix refresh location param
1 parent 5661719 commit 93bf5c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ public class LocationUtil {
212212
private static final int TEMPLATE_PART_ID = -1;
213213

214214
// limit the size of get tableEntry location from remote each time
215-
private static final int MAX_TABLET_NUMS_EPOCH = 300;
216-
private static final int TABLE_ENTRY_LOCATION_REFRESH_THRESHOLD = 100;
215+
private static final int MAX_TABLET_NUMS_EPOCH = Integer.parseInt(System.getProperty("max.table.num.epoch","300"));
216+
private static final int TABLE_ENTRY_LOCATION_REFRESH_THRESHOLD = Integer.parseInt(System.getProperty("table.entry.location.refresh.threshold","100"));
217217

218218
private abstract static class TableEntryRefreshWithPriorityCallback<T> {
219219
abstract T execute(ObServerAddr obServerAddr) throws ObTableEntryRefreshException;

0 commit comments

Comments
 (0)