File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
tests/robustness/validate Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -72,14 +72,19 @@ func prepareAndCategorizeOperations(reports []report.ClientReport) (linearizable
72
72
serializable = append (serializable , op )
73
73
}
74
74
// Remove failed read requests as they are not relevant for linearization.
75
- if response .Error == "" || ! request .IsRead () {
76
- // For linearization, we set the return time of failed requests to MaxInt64.
77
- // Failed requests can still be persisted, however we don't know when request has taken effect.
78
- if response .Error != "" {
79
- op .Return = math .MaxInt64
80
- }
81
- linearizable = append (linearizable , op )
75
+ if request .IsRead () && response .Error != "" {
76
+ continue
82
77
}
78
+ // Defragment is not linearizable
79
+ if request .Type == model .Defragment {
80
+ continue
81
+ }
82
+ // For linearization, we set the return time of failed requests to MaxInt64.
83
+ // Failed requests can still be persisted, however we don't know when request has taken effect.
84
+ if response .Error != "" {
85
+ op .Return = math .MaxInt64
86
+ }
87
+ linearizable = append (linearizable , op )
83
88
}
84
89
}
85
90
return linearizable , serializable
You can’t perform that action at this time.
0 commit comments