mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed issue #176 , handle running deleted
This commit is contained in:
@@ -64,6 +64,8 @@ public class ClientRunningMonitor extends AbstractCanalLifeCycle {
|
|||||||
public void handleDataDeleted(String dataPath) throws Exception {
|
public void handleDataDeleted(String dataPath) throws Exception {
|
||||||
MDC.put("destination", destination);
|
MDC.put("destination", destination);
|
||||||
mutex.set(false);
|
mutex.set(false);
|
||||||
|
// 触发一下退出,可能是人为干预的释放操作或者网络闪断引起的session expired timeout
|
||||||
|
processActiveExit();
|
||||||
if (!release && activeData != null && isMine(activeData.getAddress())) {
|
if (!release && activeData != null && isMine(activeData.getAddress())) {
|
||||||
// 如果上一次active的状态就是本机,则即时触发一下active抢占
|
// 如果上一次active的状态就是本机,则即时触发一下active抢占
|
||||||
initRunning();
|
initRunning();
|
||||||
|
|||||||
Reference in New Issue
Block a user