We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 108afaf commit 02e2f8fCopy full SHA for 02e2f8f
src/main/java/com/alipay/oceanbase/rpc/location/model/TableRoster.java
@@ -90,8 +90,13 @@ public List<ObServerAddr> refreshTablesAndGetNewServers(List<ReplicaLocation> ne
90
newServers.add(addr);
91
92
// has ob table addr and this addr is valid, continue
93
- if (tables.containsKey(addr) && tables.get(addr).isValid()) {
94
- continue;
+ if (tables.containsKey(addr)) {
+ if (!tables.get(addr).isValid()) {
95
+ ObTable oldTable = tables.remove(addr);
96
+ oldTable.close();
97
+ } else {
98
+ continue;
99
+ }
100
}
101
102
ObTable obTable = new ObTable.Builder(addr.getIp(), addr.getSvrPort()) //
0 commit comments