Skip to content

Commit 70a1726

Browse files
authored
Merge pull request #19140 from ahrtr/mix_version_test_20250107
Fix mixVersion test case: ensure a snapshot to be sent out
2 parents aac7ef6 + 3ee0d4f commit 70a1726

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/etcdserver/bootstrap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func bootstrapBackend(cfg config.ServerConfig, haveWAL bool, st v2store.Store, s
216216
return nil, err
217217
}
218218
}
219-
cfg.Logger.Debug("restore consistentIndex", zap.Uint64("index", ci.ConsistentIndex()))
219+
cfg.Logger.Info("restore consistentIndex", zap.Uint64("index", ci.ConsistentIndex()))
220220

221221
// TODO(serathius): Implement schema setup in fresh storage
222222
var snapshot *raftpb.Snapshot

tests/e2e/etcd_mix_versions_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ func mixVersionsSnapshotTestByMockPartition(t *testing.T, cfg *e2e.EtcdProcessCl
148148
err = toPartitionedMember.Stop()
149149
require.NoError(t, err)
150150

151-
t.Log("Writing 20 keys to the cluster (more than SnapshotCount entries to trigger at least a snapshot)")
152-
writeKVs(t, epc.Etcdctl(), 0, 20)
151+
t.Log("Writing 30 keys to the cluster (more than SnapshotCount entries to trigger at least a snapshot)")
152+
writeKVs(t, epc.Etcdctl(), 0, 30)
153153

154154
t.Log("Verify logs to check leader has saved snapshot")
155155
leaderEPC := epc.Procs[epc.WaitLeader(t)]

0 commit comments

Comments
 (0)