sandynz commented on code in PR #19782:
URL: https://github.com/apache/shardingsphere/pull/19782#discussion_r935187923
##########
shardingsphere-kernel/shardingsphere-data-pipeline/shardingsphere-data-pipeline-dialect/shardingsphere-data-pipeline-mysql/src/main/java/org/apache/shardingsphere/data/pipeline/mysql/ingest/client/MySQLClient.java:
##########
@@ -294,12 +297,11 @@ public void channelInactive(final ChannelHandlerContext
ctx) {
@Override
public void exceptionCaught(final ChannelHandlerContext ctx, final
Throwable cause) {
running = false;
- log.error("protocol resolution error", cause);
+ log.error("MySQLBinlogEventHandler: protocol resolution error",
cause);
}
private void reconnect() {
- reconnectTimes++;
- log.info("reconnect mysql client, retryTimes={}", reconnectTimes);
+ log.info("reconnect mysql client, retryTimes={}",
reconnectTimes.incrementAndGet());
Review Comment:
It's better not put `incrementAndGet` in logging
--
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]