Skip to content

Commit adc3966

Browse files
committed
validate: Add error for linearizability watch validation
- Introduce new error `errBrokeLinearizable` to detect watch events that violate linearization order - Enhance watch validation robustness by tracking potential linearizability issues
1 parent b0731c0 commit adc3966

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/robustness/validate/watch.go

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ var (
3535
errBrokePrevKV = errors.New("incorrect event prevValue")
3636
errBrokeIsCreate = errors.New("incorrect event IsCreate")
3737
errBrokeFilter = errors.New("event not matching watch filter")
38+
errBrokeLinearizable = errors.New("broke linearizable property: watch events don't match linearization order")
3839
)
3940

4041
func validateWatch(lg *zap.Logger, cfg Config, reports []report.ClientReport, replay *model.EtcdReplay) error {

0 commit comments

Comments
 (0)