Skip to content

Commit 035f080

Browse files
PanternBaoyanhuqing666
authored andcommitted
if value of binlog pause status in zk is empty, dble report ArrayIndexOutOfBoundsException (#1837)
1 parent 7ae5f55 commit 035f080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/actiontech/dble/server/OfflineStatusListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private void releaseForBinlog(String crashNode) {
9191
CuratorFramework zkConn = ZKUtils.getConnection();
9292
try {
9393
byte[] binlogStatusData = zkConn.getData().forPath(binlogStatusPath);
94-
if (binlogStatusData == null) {
94+
if (binlogStatusData == null || binlogStatusData.length == 0) {
9595
return;
9696
}
9797
String data = new String(binlogStatusData, StandardCharsets.UTF_8);

0 commit comments

Comments
 (0)