Skip to content

Commit

Permalink
validate: Add error for linearizability watch validation
Browse files Browse the repository at this point in the history
- Introduce new error `errBrokeLinearizable` to detect watch events that violate linearization order
- Enhance watch validation robustness by tracking potential linearizability issues
  • Loading branch information
iamrajiv committed Feb 17, 2025
1 parent b0731c0 commit adc3966
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/robustness/validate/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var (
errBrokePrevKV = errors.New("incorrect event prevValue")
errBrokeIsCreate = errors.New("incorrect event IsCreate")
errBrokeFilter = errors.New("event not matching watch filter")
errBrokeLinearizable = errors.New("broke linearizable property: watch events don't match linearization order")
)

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

0 comments on commit adc3966

Please sign in to comment.