Files
nomad/nomad
Tim Gross 645923274d fsm: fix bug in snapshot restore for removed timetable (#24412)
When we removed the time table in #24112 we introduced a bug where if a previous
version of Nomad had written a time table entry, we'd return from the restore
loop early and never load the rest of the FSM. This will result in a mostly or
partially wiped state for that Nomad node, which would then be out of sync with
its peers (which would also have the same problem on upgrade).

The bug only occurs when the FSM is being restored from snapshot, which isn't
the case if you test with a server that's only written Raft logs and not
snapshotted them.

While fixing this bug, we still need to ensure we're reading the time table
entries even if we're throwing them away, so that we move the snapshot reader
along to the next full entry.

Fixes: https://github.com/hashicorp/nomad/issues/24411
2024-11-11 08:01:18 -05:00
..
2023-08-14 08:43:27 -05:00
2024-09-19 13:56:42 -04:00
2024-09-19 13:56:42 -04:00
2024-03-21 11:44:23 -07:00
2023-10-12 12:21:48 -04:00
2024-03-11 08:52:08 +00:00