mirror of
https://github.com/actiontech/dble.git
synced 2026-01-28 00:09:26 -06:00
if value of binlog pause status in zk is empty, dble report ArrayIndexOutOfBoundsException (#1837)
This commit is contained in:
@@ -91,7 +91,7 @@ public class OfflineStatusListener implements PathChildrenCacheListener {
|
||||
CuratorFramework zkConn = ZKUtils.getConnection();
|
||||
try {
|
||||
byte[] binlogStatusData = zkConn.getData().forPath(binlogStatusPath);
|
||||
if (binlogStatusData == null) {
|
||||
if (binlogStatusData == null || binlogStatusData.length == 0) {
|
||||
return;
|
||||
}
|
||||
String data = new String(binlogStatusData, StandardCharsets.UTF_8);
|
||||
|
||||
Reference in New Issue
Block a user