github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/kv/kvserver/testdata/truncated_state_migration/migration (about) 1 # Migrating after VersionUnreplicatedRaftTruncatedState was enabled. During the 2 # migration, no TruncatedState is on disk, but we write the new, unreplicated, 3 # one (note the /u/ in the key) 4 5 prev index=100 term=9 6 ---- 7 8 handle index=150 term=9 9 ---- 10 apply: true 11 /Local/RangeID/12/u/RaftTruncatedState -> index=150 term=9 12 13 # Simulate another truncation that moves forward. 14 15 handle index=170 term=9 16 ---- 17 apply: true 18 /Local/RangeID/12/u/RaftTruncatedState -> index=170 term=9 19 20 # ... and one that moves backwards and should not take effect. 21 22 handle index=150 term=9 23 ---- 24 apply: false 25 /Local/RangeID/12/u/RaftTruncatedState -> index=170 term=9