Skip to content

Commit

Permalink
Merge pull request etcd-io#19359 from ahrtr/test_20250207
Browse files Browse the repository at this point in the history
Add more debug info into waitTillSnapshot
  • Loading branch information
ahrtr authored Feb 7, 2025
2 parents a747fde + 34546e9 commit b2d352b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/robustness/failpoint/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ func waitTillSnapshot(ctx context.Context, t *testing.T, clus *e2e.EtcdProcessCl
if err != nil {
return err
}
t.Logf("clusterRevision: %d, blackholedMemberRevision: %d", clusterRevision, blackholedMemberRevision)
minEntriesToGuarantee := entriesToGuaranteeSnapshot(*clus.Cfg)
t.Logf("clusterRevision: %d, blackholedMemberRevision: %d, minEntriesToGuarantee: %d", clusterRevision, blackholedMemberRevision, minEntriesToGuarantee)
// Blackholed member has to be sufficiently behind to trigger snapshot transfer.
if clusterRevision-blackholedMemberRevision > int64(entriesToGuaranteeSnapshot(*clus.Cfg)) {
if clusterRevision-blackholedMemberRevision > int64(minEntriesToGuarantee) {
break
}
time.Sleep(100 * time.Millisecond)
Expand Down

0 comments on commit b2d352b

Please sign in to comment.