-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
etcdserver: process the case of the last WAL record being partially synced to disk #15068
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…disk We need to return io.ErrUnexpectedEOF in the error chain, so that etcdserver can repair it automatically. Signed-off-by: Benjamin Wang <wachao@vmware.com>
Reference: https://go.dev/doc/go1.16#ioutil Signed-off-by: Benjamin Wang <wachao@vmware.com>
ahrtr
changed the title
Process the case of the last record being partially synced to disk
Process the case of the last WAL record being partially synced to disk
Jan 7, 2023
ahrtr
added a commit
to ahrtr/etcd
that referenced
this pull request
Jan 7, 2023
…y synced to disk We need to return io.ErrUnexpectedEOF in the error chain, so that etcdserver can repair it automatically. Backport etcd-io#15068 Signed-off-by: Benjamin Wang <wachao@vmware.com>
Codecov Report
@@ Coverage Diff @@
## main #15068 +/- ##
==========================================
- Coverage 74.87% 74.61% -0.26%
==========================================
Files 415 415
Lines 34288 34288
==========================================
- Hits 25672 25583 -89
- Misses 6994 7059 +65
- Partials 1622 1646 +24
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 |
/lgtm (non-binding) |
ahrtr
changed the title
Process the case of the last WAL record being partially synced to disk
etcdserve: process the case of the last WAL record being partially synced to disk
Jan 11, 2023
ahrtr
changed the title
etcdserve: process the case of the last WAL record being partially synced to disk
etcdserver: process the case of the last WAL record being partially synced to disk
Jan 11, 2023
ptabor
approved these changes
Jan 11, 2023
ptabor
changed the title
etcdserver: process the case of the last WAL record being partially synced to disk
etcdserver: process the case of the last WAL record being partially synced to disk [backport 3.5]
Jan 11, 2023
ptabor
changed the title
etcdserver: process the case of the last WAL record being partially synced to disk [backport 3.5]
etcdserver: process the case of the last WAL record being partially synced to disk
Jan 11, 2023
tjungblu
pushed a commit
to tjungblu/etcd
that referenced
this pull request
Jan 11, 2023
…ord being partially synced to disk We need to return io.ErrUnexpectedEOF in the error chain, so that etcdserver can repair it automatically. Backport etcd-io#15068 Signed-off-by: Benjamin Wang <wachao@vmware.com>
openshift-cherrypick-robot
pushed a commit
to openshift-cherrypick-robot/etcd
that referenced
this pull request
Jan 11, 2023
…ord being partially synced to disk We need to return io.ErrUnexpectedEOF in the error chain, so that etcdserver can repair it automatically. Backport etcd-io#15068 Signed-off-by: Benjamin Wang <wachao@vmware.com>
openshift-cherrypick-robot
pushed a commit
to openshift-cherrypick-robot/etcd
that referenced
this pull request
Jan 16, 2023
…ord being partially synced to disk We need to return io.ErrUnexpectedEOF in the error chain, so that etcdserver can repair it automatically. Backport etcd-io#15068 Signed-off-by: Benjamin Wang <wachao@vmware.com>
openshift-cherrypick-robot
pushed a commit
to openshift-cherrypick-robot/etcd
that referenced
this pull request
Jan 17, 2023
…ord being partially synced to disk We need to return io.ErrUnexpectedEOF in the error chain, so that etcdserver can repair it automatically. Backport etcd-io#15068 Signed-off-by: Benjamin Wang <wachao@vmware.com>
openshift-cherrypick-robot
pushed a commit
to openshift-cherrypick-robot/etcd
that referenced
this pull request
Jan 23, 2023
…ord being partially synced to disk We need to return io.ErrUnexpectedEOF in the error chain, so that etcdserver can repair it automatically. Backport etcd-io#15068 Signed-off-by: Benjamin Wang <wachao@vmware.com>
tjungblu
pushed a commit
to tjungblu/etcd
that referenced
this pull request
Jul 26, 2023
…y synced to disk We need to return io.ErrUnexpectedEOF in the error chain, so that etcdserver can repair it automatically. Backport etcd-io#15068 Signed-off-by: Benjamin Wang <wachao@vmware.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is a regression in #14122. When the last record is only partially synced to disk, we should return
io.ErrUnexpectedEOF
in the error chain, otherwise etcdserver will not repair it and etcdserver will also fail to get started.See also #14114 (comment)