Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /io.vertx/syncMap/role_1071716/centerServerId #84

Open
felix-laofan opened this issue Jun 26, 2019 · 4 comments

Comments

@felix-laofan
Copy link

io.vertx.core.VertxException: io.vertx.core.VertxException: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /io.vertx/syncMap/role_1071716/centerServerId
at io.vertx.spi.cluster.zookeeper.impl.ZKSyncMap.put(ZKSyncMap.java:114)
at coolGame.hall.tcp.login.HallLoginMsgReqHandler.reCallGateway(HallLoginMsgReqHandler.java:595)
at coolGame.hall.tcp.login.HallLoginMsgReqHandler.common(HallLoginMsgReqHandler.java:533)
at coolGame.hall.tcp.login.HallLoginMsgReqHandler.login_channel_account(HallLoginMsgReqHandler.java:212)
at coolGame.hall.tcp.login.HallLoginMsgReqHandler.process(HallLoginMsgReqHandler.java:101)
at coolGame.core.process.TcpProcessUtil.process(TcpProcessUtil.java:108)
at coolGame.core.vert.VertTask.execute(VertTask.java:29)
at coolGame.core.exec.action.Action.run(Action.java:35)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: io.vertx.core.VertxException: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /io.vertx/syncMap/role_1071716/centerServerId
at io.vertx.spi.cluster.zookeeper.impl.ZKSyncMap.get(ZKSyncMap.java:95)
at io.vertx.spi.cluster.zookeeper.impl.ZKSyncMap.put(ZKSyncMap.java:107)
... 10 more
Caused by: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /io.vertx/syncMap/role_1071716/centerServerId
at org.apache.zookeeper.KeeperException.create(KeeperException.java:114)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:54)
at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1221)
at org.apache.curator.framework.imps.GetDataBuilderImpl$4.call(GetDataBuilderImpl.java:310)
at org.apache.curator.framework.imps.GetDataBuilderImpl$4.call(GetDataBuilderImpl.java:299)
at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:109)
at org.apache.curator.framework.imps.GetDataBuilderImpl.pathInForeground(GetDataBuilderImpl.java:296)
at org.apache.curator.framework.imps.GetDataBuilderImpl.forPath(GetDataBuilderImpl.java:287)
at org.apache.curator.framework.imps.GetDataBuilderImpl.forPath(GetDataBuilderImpl.java:34)
at io.vertx.spi.cluster.zookeeper.impl.ZKSyncMap.get(ZKSyncMap.java:90)
... 11 more
ERROR - coolGame.hall.tcp.login.HallLoginMsgReqHandler.reCallGateway(HallLoginMsgReqHandler.java:607)^M
io.vertx.core.VertxException: io.vertx.core.VertxException: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /io.vertx/syncMap/role_1071716/centerServerId

@felix-laofan
Copy link
Author

my code is this;
Map<Object, Object> roleMap = ZVertClusterManager.getInstance().getMgr()
.getSyncMap(CoolGameMapKey.Role_Map_Key.getKey(role.getRid()));
roleMap.put(VertShareMapKey.roleId, role.getRid());
roleMap.put(VertShareMapKey.sessionId, message.getSessionId());
int serverId = Config.getInt(Config.MY_SERVER_ID_KEY);
int groupId = Config.getInt(Config.GROUP_ID);
LogUtil.info("[%s][%s]",serverId,groupId);
roleMap.put(VertShareMapKey.centerGroupId, groupId);
roleMap.put(VertShareMapKey.centerServerId, serverId);

		// todo 此处如果有跨服战等功能。在登录时会通过redis检查数据
		roleMap.put(VertShareMapKey.sceneGroupId, groupId);
		roleMap.put(VertShareMapKey.sceneServerId, 501);

@felix-laofan
Copy link
Author

when run on the "roleMap.put(VertShareMapKey.centerGroupId, groupId);" Exception

@stream-iori
Copy link
Contributor

stream-iori commented Jun 26, 2019 via email

@stream-iori
Copy link
Contributor

stream-iori commented Jun 26, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants