liuyangming / ByteTCC

ByteTCC is a distributed transaction manager based on the TCC(Try/Confirm/Cancel) mechanism. It’s compatible with the JTA specification. User guide: https://github.com/liuyangming/ByteTCC/wiki
https://www.bytesoft.org/
GNU Lesser General Public License v3.0
2.9k stars 911 forks source link

Only the master node can perform the recovery operation!进程退出! #87

Closed zrweng closed 6 years ago

zrweng commented 6 years ago

启动过程一直循环出现: 2018-10-29 19:17:22,684 DEBUG (CompensableCleanupWork.java:95) - Current node is not the master! 2018-10-29 19:17:27,657 DEBUG (CompensableWork.java:71) - Only the master node can perform the recovery operation!

然后应用进程就退出了,请教该怎么解决?

liuyangming commented 6 years ago

这个日志是DEBUG级别的,不影响启动。应用进程退出应该是存在其他错误。

zrweng commented 6 years ago

是的,由于应用系统设置了 Lazy-init="true",对SmartInitializingSingleton.afterSingletonsInstantiated() 无法调用,造成环境初始化不正常。