-
Notifications
You must be signed in to change notification settings - Fork 216
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
code_update_test break in CI #2625
Comments
Similar issue in https://dev.azure.com/MSRC-CCF/CCF/_build/results?buildId=26080&view=logs&j=5435e0ac-25e5-5426-50be-61b0d0ea8d34&t=63d660c3-6f76-573a-0154-fd0bcb096ded
|
Looks like def _get_node_by_service_id(self, node_id):
return next((node for node in self.nodes if node.node_id == node_id), None) So |
Specifically,
So node 2 still thinks node 1 is primary, shortly after 1 was removed from |
Another error noticed in these logs, that doesn't explain the crash but should be fixed, is that a retired node can know (and report) the new, correct primary, but reports the incorrect term.
This is correct. We ask node 3 who the primary is, they correctly say it is node 1 in term 3.
Shortly afterwards, after node 1 is retired, we ask node 1 who the primary is. They report node 4 (correct, they've won an election in the new term once 1 is retired), but in the wrong term (reported as term 3, really term 4). |
@eddyashton yes, that's because Retired does "too little" now and should act more like "Follower" as suggested in #2606. I'm working on this. |
Waiting on #2801 |
https://dev.azure.com/MSRC-CCF/CCF/_build/results?buildId=26078&view=logs&j=8f3dc89c-3708-5926-47e7-27120a268dab&t=efdbc34d-c6b6-5dc6-e05c-1751d4c47c20&l=23732
The text was updated successfully, but these errors were encountered: