@Override
protected void revalidateSession(ServerCnxn cnxn, long sessionId,
int sessionTimeout) throws IOException {
super.revalidateSession(cnxn, sessionId, sessionTimeout);
try {
// setowner as the leader itself, unless updated
// via the follower handlers
setOwner(sessionId, ServerCnxn.me);
} catch (SessionExpiredException e) {
// this is ok, it just means that the session revalidation failed.
}
}
LeaderZooKeeperServer.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:fuck_zookeeper
作者:
评论列表
文章目录