Fix the ephemeralId will not be deleted before jdbc-registry closed. (#14936)
This commit is contained in:
parent
c438d7194c
commit
298b8ccf5a
|
|
@ -83,12 +83,12 @@ public class EphemeralDateManager implements AutoCloseable {
|
|||
|
||||
@Override
|
||||
public void close() throws SQLException {
|
||||
ephemeralDateIds.clear();
|
||||
connectionListeners.clear();
|
||||
scheduledExecutorService.shutdownNow();
|
||||
for (Long ephemeralDateId : ephemeralDateIds) {
|
||||
jdbcOperator.deleteDataById(ephemeralDateId);
|
||||
}
|
||||
ephemeralDateIds.clear();
|
||||
connectionListeners.clear();
|
||||
scheduledExecutorService.shutdownNow();
|
||||
}
|
||||
|
||||
// Use this task to refresh ephemeral term and check the connect state.
|
||||
|
|
|
|||
Loading…
Reference in New Issue