This is an automated email from the ASF dual-hosted git repository.
jianglongtao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new a9080c51e7e Fix sonar issue on MySQLBinlogClient (#32556)
a9080c51e7e is described below
commit a9080c51e7edf6262f083bc988955c08ad413867
Author: Liang Zhang <[email protected]>
AuthorDate: Fri Aug 16 14:52:22 2024 +0800
Fix sonar issue on MySQLBinlogClient (#32556)
---
.../data/pipeline/mysql/ingest/client/MySQLBinlogClient.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/kernel/data-pipeline/dialect/mysql/src/main/java/org/apache/shardingsphere/data/pipeline/mysql/ingest/client/MySQLBinlogClient.java
b/kernel/data-pipeline/dialect/mysql/src/main/java/org/apache/shardingsphere/data/pipeline/mysql/ingest/client/MySQLBinlogClient.java
index 38a167372ec..a7125bb9609 100644
---
a/kernel/data-pipeline/dialect/mysql/src/main/java/org/apache/shardingsphere/data/pipeline/mysql/ingest/client/MySQLBinlogClient.java
+++
b/kernel/data-pipeline/dialect/mysql/src/main/java/org/apache/shardingsphere/data/pipeline/mysql/ingest/client/MySQLBinlogClient.java
@@ -376,7 +376,7 @@ public final class MySQLBinlogClient {
} catch (final RuntimeException ex) {
// CHECKSTYLE:ON
log.error("Reconnect failed, reconnect times: {},
lastBinlogEvent: {}", reconnectTimes,
JsonUtils.toJsonString(lastBinlogEvent.get()), ex);
- Thread.sleep(1000L << reconnectTimes);
+ this.wait(1000L << reconnectTimes);
}
}
}