apinto icon indicating copy to clipboard operation
apinto copied to clipboard

bug: 程序启动时,admin进程会启动两次

Open Mr-TianLang opened this issue 9 months ago • 0 comments

Current Behavior

每次启动程序的时候,观察到admin进程会启动两次,观察代码,发现一次启动是watch etcd配置触发的admin进程启动,另一次启动是leaderchange时启动admin进程。

Expected Behavior

每次启动程序,admin进程只启动一次

Error Logs

No response

Steps to Reproduce

1.在NewProcessAdmin 方法里 添加 代码 time.sleep(time.Second * 15) 2.使用vscode进行debug启动

Environment

APINTO (0.15.7) 单节点

Mr-TianLang avatar May 17 '24 03:05 Mr-TianLang