-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linearizability raft before leader send #14752
Linearizability raft before leader send #14752
Conversation
Please resolve the pipeline failures. |
194a010
to
20e19df
Compare
@ahrtr done |
20e19df
to
22ee2e6
Compare
Codecov Report
@@ Coverage Diff @@
## main #14752 +/- ##
==========================================
+ Coverage 75.45% 75.52% +0.06%
==========================================
Files 457 457
Lines 37372 37372
==========================================
+ Hits 28200 28225 +25
+ Misses 7401 7368 -33
- Partials 1771 1779 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
22ee2e6
to
f002c49
Compare
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
f002c49
to
371179e
Compare
DefragBeforeCopyPanic Failpoint = goFailpoint{"backend/defragBeforeCopy", "panic", triggerDefrag, AnyMember} | ||
DefragBeforeRenamePanic Failpoint = goFailpoint{"backend/defragBeforeRename", "panic", triggerDefrag, AnyMember} | ||
BeforeCommitPanic Failpoint = goFailpoint{"backend/beforeCommit", "panic", nil, AnyMember} | ||
AfterCommitPanic Failpoint = goFailpoint{"backend/afterCommit", "panic", nil, AnyMember} | ||
RaftBeforeSavePanic Failpoint = goFailpoint{"etcdserver/raftBeforeSave", "panic", nil, AnyMember} | ||
RaftAfterSavePanic Failpoint = goFailpoint{"etcdserver/raftAfterSave", "panic", nil, AnyMember} | ||
BackendBeforePreCommitHookPanic Failpoint = goFailpoint{"backend/commitBeforePreCommitHook", "panic", nil, AnyMember} | ||
BackendAfterPreCommitHookPanic Failpoint = goFailpoint{"backend/commitAfterPreCommitHook", "panic", nil, AnyMember} | ||
BackendBeforeStartDBTxnPanic Failpoint = goFailpoint{"backend/beforeStartDBTxn", "panic", nil, AnyMember} | ||
BackendAfterStartDBTxnPanic Failpoint = goFailpoint{"backend/afterStartDBTxn", "panic", nil, AnyMember} | ||
BackendBeforeWritebackBufPanic Failpoint = goFailpoint{"backend/beforeWritebackBuf", "panic", nil, AnyMember} | ||
BackendAfterWritebackBufPanic Failpoint = goFailpoint{"backend/afterWritebackBuf", "panic", nil, AnyMember} | ||
CompactBeforeCommitScheduledCompactPanic Failpoint = goFailpoint{"mvcc/compactBeforeCommitScheduledCompact", "panic", triggerCompact, AnyMember} | ||
CompactAfterCommitScheduledCompactPanic Failpoint = goFailpoint{"mvcc/compactAfterCommitScheduledCompact", "panic", triggerCompact, AnyMember} | ||
CompactBeforeSetFinishedCompactPanic Failpoint = goFailpoint{"mvcc/compactBeforeSetFinishedCompact", "panic", triggerCompact, AnyMember} | ||
CompactAfterSetFinishedCompactPanic Failpoint = goFailpoint{"mvcc/compactAfterSetFinishedCompact", "panic", triggerCompact, AnyMember} | ||
CompactBeforeCommitBatchPanic Failpoint = goFailpoint{"mvcc/compactBeforeCommitBatch", "panic", triggerCompact, AnyMember} | ||
CompactAfterCommitBatchPanic Failpoint = goFailpoint{"mvcc/compactAfterCommitBatch", "panic", triggerCompact, AnyMember} | ||
RaftBeforeLeaderSendPanic Failpoint = goFailpoint{"etcdserver/raftBeforeLeaderSend", "panic", nil, Leader} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are too many duplicated parameters, e.g. nil
, AnyMember
. We should only provide a value when it isn't nil
or AnyMember
. Let's consider to refactor it later in separate PRs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, I'm thinking about how to combine this with allowing non-panic failpoints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me.
Fixes the incorrect backport of WaitLeader, as spawnJsonCmd expects an expected output string as argument, which wasn't provided in the first backport implementation. Original backport of commit 371179e from PR etcd-io#14752. Signed-off-by: Ivan Valdes <ivan@vald.es>
Fixes the incorrect backport of WaitLeader, as spawnJsonCmd expects an expected output string as argument, which wasn't provided in the first backport implementation. Original backport of commit 371179e from PR etcd-io#14752. Signed-off-by: Ivan Valdes <ivan@vald.es>
Fixes the incorrect backport of WaitLeader, as spawnJsonCmd receives an expected output string as an argument, which wasn't provided in the first backport implementation. Original backport of commit 371179e from PR etcd-io#14752. Signed-off-by: Ivan Valdes <ivan@vald.es>
Part of #14726
cc @ahrtr