Fix #7560
closed
mon: add compat set feature to mark an upgraded pg format in order to disallow downgrades
Added by Joao Eduardo Luis about 10 years ago.
Updated about 10 years ago.
Description
We do not currently prevent a cuttlefish monitor from running on a dumpling store after an upgrade.
- Assignee set to Joao Eduardo Luis
- Category set to Monitor
- Priority changed from Normal to High
- Status changed from New to Closed
The feature was introduced for Dumpling. The only version that does not support it is Cuttlefish, and it will assert out when unable to decode the incremental version (as the encode/decode functions were protected by increasing the compat versions).
Considering that cuttlefish is currently considered really old, and that people tend to want to upgrade from cuttlefish instead of downgrading to cuttlefish, protecting us from dowgrades now should not be worth the effort of doing so and managing backports all the way back.
We must however avoid this sort of thing in the future. Even though mon protocol version was increased, and we took care of the encoding/decoding version barriers, the on-disk features should have been added back then.
Also available in: Atom
PDF