-
Notifications
You must be signed in to change notification settings - Fork 861
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
phxpaxos 启动不了 #32
Comments
从这个日志来看,PaxosLog部分丢失了。 |
我们bSync设置的是false 2016-11-22 09:03:51.11s CheckpointInstanceID 6497752 2016-11-22 09:03:51.11s DEBUG(0): PN8phxpaxos8LogStoreE::ParseFileID fileid 19 offset 52932087 checksum 2691965949 2016-11-22 09:03:51.11s DEBUG(0): PN8phxpaxos8DatabaseE::GetFromLevelDB LevelDB.Get not found, instanceid 6497754 |
leveldb的数据丢了一个instance 6497754,原因未知。 |
检查了一下 6497753 到6570821(最大值)之间的数据 |
期间机器是否有重启过?如果bSync设置为false并且机器重启的话是有可能出问题的。 目前的解决办法只能直接删掉paxos log数据重启了。 |
bSync设置为false的话在sata盘上性能比较差的, |
机器重启没有机会写磁盘的,比如突然机器断电。 |
暂时先在paxos_log_tools基础上加了个方法,从第一个丢失的开始到最大值都删除掉 |
一台服务器paxos服务一次重启后突然就启动不了,后台有日志:
2016-11-22 08:08:03.11s CheckpointInstanceID 6497752
2016-11-22 08:08:03.11s ERR(0): PN8phxpaxos8DatabaseE::GetMinChosenInstanceID no min chosen instanceid
2016-11-22 08:08:03.11s ERR(0): PN8phxpaxos8InstanceE::PlayLog log read fail, instanceid 6497754 ret 1
这个有可能是什么原因?
版本为master
The text was updated successfully, but these errors were encountered: