Use static list of keys in model#21486
Conversation
0960e0c to
128523f
Compare
e09e042 to
13c9d8f
Compare
06ee931 to
dfb6d70
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted filessee 25 files with indirect coverage changes @@ Coverage Diff @@
## main #21486 +/- ##
==========================================
+ Coverage 68.30% 68.37% +0.06%
==========================================
Files 429 429
Lines 35389 35389
==========================================
+ Hits 24172 24196 +24
+ Misses 9809 9785 -24
Partials 1408 1408 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
42756c1 to
458d1cf
Compare
458d1cf to
edb9dc3
Compare
|
/retest |
|
/test pull-etcd-robustness-amd64 |
|
/cc @nwnt @henrybear327 |
ff35e8b to
4c0ab2b
Compare
|
Extracted #21578 |
cf7d6f3 to
1e606b8
Compare
1e606b8 to
4470642
Compare
|
PTAL @nwnt @henrybear327 @fuweid |
| err = errBrokePrevKV | ||
| if event.PrevValue != nil { | ||
| val, ok := state.GetValue(event.Key) | ||
| if !ok { |
There was a problem hiding this comment.
Not sure if I'm making things too complicated just to avoid the duplication...
| if !ok { | |
| var previousValueErrField *zap.Field | |
| switch { | |
| case !ok: | |
| previousValueErrField = &zap.Any("previousValue", nil) | |
| case *event.PrevValue != *val: | |
| previousValueErrField = &zap.Any("previousValue", nil) | |
| } | |
| if previousValueErrField != nil { | |
| lg.Error("Incorrect event prevValue field", zap.Int("client", report.ClientID), zap.Any("event", event), zap.Any("previousValue", *previousValueErrField)) | |
| } |
There was a problem hiding this comment.
meant to highlight the whole if/else statement.
There was a problem hiding this comment.
Let's not mix refactor and feature work.
3224417 to
0449ae9
Compare
0449ae9 to
912053f
Compare
|
Extracted #21597 to make review easier. |
912053f to
c6b8f3c
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: henrybear327, serathius The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
90bd616 to
95a5f67
Compare
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com> Co-authored-by: Nont <9658731+nwnt@users.noreply.github.com>
95a5f67 to
711d868
Compare
Continuation of #19973
PoC for #21133
After improvements in #21488