sandynz opened a new issue, #19797:
URL: https://github.com/apache/shardingsphere/issues/19797
Related code in MySQLClient:
```
private void reconnect() {
reconnectTimes++;
log.info("reconnect mysql client, retryTimes={}",
reconnectTimes);
closeChannel();
connect();
subscribe(lastBinlogEvent.getFileName(),
lastBinlogEvent.getPosition());
}
public void closeChannel() {
if (null == channel || !channel.isOpen()) {
return;
}
try {
channel.close();
// CHECKSTYLE:OFF
} catch (final RuntimeException ex) {
// CHECKSTYLE:ON
log.error("close channel error", ex);
}
}
```
`channel.close();` will return `io.netty.channel.ChannelFuture`, but result
is ignored and there's no sync/await. So connect again might be occur before
old channel is closed.
Is it possible to cause issue?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]