Commit ec8f8d9
authored
Get rid of the JOIN_PRIMARY state. (#796)
* Get rid of the JOIN_PRIMARY state.
We still need to maintain backward compatibility of course, in case there is
an upgrade where one node is in JOIN_PRIMARY and then we want to be able to
continue working with the node.
Now, any node that reports JOIN_PRIMARY is unconditionnally assigned PRIMARY
instead, and we never assign JOIN_PRIMARY anymore. We still have some code
that matches the state in the group level FSM, and we keep the full compat
on the client side for the moment.
* Per review, preserve our WAIT_PRIMARY to PRIMARY transition.
* Per review, APPLY_SETTINGS is only required when replicationQuorum.1 parent d5a73eb commit ec8f8d9
File tree
9 files changed
+450
-494
lines changed- docs
- tikz
- src
- bin/pg_autoctl
- monitor
- tests
9 files changed
+450
-494
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| |||
Loading
0 commit comments