Skip to content

Commit

Permalink
tests: Reproduce #18089 in robustness tests
Browse files Browse the repository at this point in the history
1) Use SleepBeforeSendWatchResponse failpoint to simulate slow watch
2) Decrease compact period from 200ms to 100ms to increase the probability of compacting on Delete
3) Introduce a new traffic pattern of 50/50 Put and Delete

With these three changes the `make test-robustness-issue18089` command can reproduce issue 18089.

Signed-off-by: Jiayin Mao <[email protected]>
  • Loading branch information
jmao-dd committed Jan 14, 2025
1 parent 99ea3a4 commit 3543858
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/robustness/traffic/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ var Kubernetes Traffic = kubernetesTraffic{
namespace: "default",
// Please keep the sum of weights equal 1000.
writeChoices: []random.ChoiceWeight[KubernetesRequestType]{
{Choice: KubernetesUpdate, Weight: 50},
{Choice: KubernetesDelete, Weight: 25},
{Choice: KubernetesCreate, Weight: 25},
{Choice: KubernetesUpdate, Weight: 90},
{Choice: KubernetesDelete, Weight: 5},
{Choice: KubernetesCreate, Weight: 5},
},
}

Expand Down

0 comments on commit 3543858

Please sign in to comment.