Skip to content

Commit 0b01393

Browse files
committed
fix refresh location param
1 parent cecdb6a commit 0b01393

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
@@ -213,8 +213,8 @@ public class LocationUtil {
213213
private static final int TEMPLATE_PART_ID = -1;
214214

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

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

0 commit comments

Comments
 (0)