当我使用BDB JE构建HA应用程序时,我遇到了异常:
com.sleepycat.je.EnvironmentFailureException: (JE 6.4.9) Group key: $$GROUP_KEY$$ is missing UNEXPECTED_STATE: Unexpected internal state, may have side effects.
at com.sleepycat.je.EnvironmentFailureException.unexpectedState(EnvironmentFailureException.java:426)
at com.sleepycat.je.rep.impl.RepGroupDB.fetchGroup(RepGroupDB.java:416)
at com.sleepycat.je.rep.impl.RepGroupDB.getGroup(RepGroupDB.java:255)
at com.sleepycat.je.rep.impl.RepGroupDB.getGroup(RepGroupDB.java:288)
at com.sleepycat.je.rep.impl.node.RepNode.refreshCachedGroup(RepNode.java:858)
at com.sleepycat.je.rep.impl.node.RepNode.findMaster(RepNode.java:1201)
at com.sleepycat.je.rep.impl.node.RepNode.startup(RepNode.java:827)
at com.sleepycat.je.rep.impl.node.RepNode.joinGroup(RepNode.java:2031)
at com.sleepycat.je.rep.impl.RepImpl.joinGroup(RepImpl.java:590)
at com.sleepycat.je.rep.ReplicatedEnvironment.joinGroup(ReplicatedEnvironment.java:581)
at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:643)
at com.sleepycat.je.rep.ReplicatedEnvironment.<init>(ReplicatedEnvironment.java:489)
at com.tencent.hippo.broker.service.impl.DefStoreManagerService.getEnvironment(DefStoreManagerService.java:574)
at com.tencent.hippo.broker.service.impl.DefStoreManagerService.startService(DefStoreManagerService.java:116)
at com.tencent.hippo.broker.ServerEngine.engineStart(ServerEngine.java:48)
at com.tencent.hippo.broker.HippoBroker$1.run(HippoBroker.java:45)
at java.lang.Thread.run(Thread.java:745)
ReplicationEnvironment有一个主服务器和一个从服务器。当我第一次启动应用程序时,它运行良好;但是当重启奴隶时,我遇到了上述异常。有没有人见过这个?
答案 0 :(得分:1)
我已经解决了这个问题。在我的应用程序中,我启动了几个复制环境,但在我停止应用程序时只关闭一个。