Closed funky-eyes closed 1 year ago
Unable to fsync directory sessionStore\raft\9091\default\snapshot\temp on windows.
应该跟 https://github.com/sofastack/sofa-jraft/pull/745 有关系。 windows 也没有实现 fsync directory 和 atomic move 语义。 jraft 没有在 windows 系统充分测试过,请慎重使用。
我记得当初在20年的某个版本应该是1.3.7还是1.3.6来着,好像没发现这个问题.只能把相关测试和运行要在非windows上吗
我记得当初在20年的某个版本应该是1.3.7还是1.3.6来着,好像没发现这个问题.只能把相关测试和运行要在非windows上吗
有没有问题是看运气,是不是中途写到一半,是不是临时文件没有原子 move 成功等等。整个库的测试和研发都仅在 mac/linux 上验证过,windows 确实没有验证。
我记得当初在20年的某个版本应该是1.3.7还是1.3.6来着,好像没发现这个问题.只能把相关测试和运行要在非windows上吗
有没有问题是看运气,是不是中途写到一半,是不是临时文件没有原子 move 成功等等。整个库的测试和研发都仅在 mac/linux 上验证过,windows 确实没有验证。
明白了,谢谢
Describe the bug
之前好像没出现这个问题,今天测试的时候,电脑非常卡,强杀了leader,再重启,老leader去跟新leader拉snapshot就扑街了 文件好像确实没有保存下来,不知道为什么
leader 节点
follower拉不到snapshot报错
Expected behavior
Actual behavior
Steps to reproduce
Minimal yet complete reproducer code (or GitHub URL to code)
Environment
java -version
): 17uname -a
): windows11