-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
batcheval,storage: move EndTransaction to batcheval #26917
Conversation
🎊 🎊 🎊 Reviewed 15 of 15 files at r1. pkg/storage/replica_state.go, line 30 at r1 (raw file):
This is a strange file. I wonder if it needs to exist at all anymore. pkg/storage/storagebase/base.go, line 142 at r1 (raw file):
You'll probably run into issues making this (or the two above) methods in pkg/storage/storagebase/errors.go, line 21 at r1 (raw file):
I think this should actually go in Comments from Reviewable |
Good ideas! Now that I'm not hurtling through the air at 600mph in a little tin can I'll take another stab at decomposing this. |
Review status: pkg/storage/replica_state.go, line 30 at r1 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
Yeah, super weird. I smushed into what seems like a logical place in replica.go. pkg/storage/storagebase/base.go, line 142 at r1 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
Yeah, agreed it doesn't belong here. It looks like nothing else in pkg/storage/storagebase/errors.go, line 21 at r1 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
Wow, yeah. There's a very obvious place for it. Thanks for the pointer. Comments from Reviewable |
1 similar comment
Review status: pkg/storage/replica_state.go, line 30 at r1 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
Yeah, super weird. I smushed into what seems like a logical place in replica.go. pkg/storage/storagebase/base.go, line 142 at r1 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
Yeah, agreed it doesn't belong here. It looks like nothing else in pkg/storage/storagebase/errors.go, line 21 at r1 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
Wow, yeah. There's a very obvious place for it. Thanks for the pointer. Comments from Reviewable |
Reviewed 9 of 9 files at r2. pkg/roachpb/errors.go, line 574 at r2 (raw file):
list? pkg/storage/storagebase/base.go, line 142 at r1 (raw file): Previously, benesch (Nikhil Benesch) wrote…
SGTM Comments from Reviewable |
Review status: pkg/roachpb/errors.go, line 574 at r2 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
Heh, looks like NewReplicaCorruptionError predates errors.Wrap. When it was updated for an errors.Wrap world the comment wasn't updated: 98db634. I've updated it now. pkg/storage/storagebase/base.go, line 142 at r1 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
Ack. (Reviewable seems to think there's more to be done on this comment stream.) Comments from Reviewable |
Could you hold this for a minute? I have a relatively urgent mitigation for #26830 that needs to be backported, and it'll make my life a lot easier if I don't have to rewrite the patch on 2.0. |
(but generally thanks for cleaning this up! This has bothered me a few times myself) |
Most certainly!
…On Sat, Jun 23, 2018 at 4:59 AM Tobias Schottdorf ***@***.***> wrote:
(but generally thanks for cleaning this up! This has bothered me a few
times myself)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#26917 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA15IK7BKf_hMCJmvcH8oAYEtaayntPNks5t_i21gaJpZM4UzCqo>
.
|
Fire away! Sorry for the wait.
On Sat, Jun 23, 2018 at 12:44 PM Nikhil Benesch <[email protected]>
wrote:
Most certainly!
On Sat, Jun 23, 2018 at 4:59 AM Tobias Schottdorf <
***@***.***>
wrote:
> (but generally thanks for cleaning this up! This has bothered me a few
> times myself)
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <
#26917 (comment)
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AA15IK7BKf_hMCJmvcH8oAYEtaayntPNks5t_i21gaJpZM4UzCqo
>
> .
>
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#26917 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE135OtNLZIfjFarTXu3BuHyHS5suLPVks5t_nBxgaJpZM4UzCqo>
.
--
…-- Tobias
|
Reviewed 8 of 15 files at r1, 9 of 9 files at r2. Comments from Reviewable |
Move the last remaining command, EndTransaction, to the batcheval package, where it logically belongs. In doing so, resolve a longstanding TODO. The one-phase commit logic still lives in storage and, unfortunately, ends up tightly coupled with the EndTransaction machinery in batcheval, but this is a step in the right direction. By contrast, the extraction of writeInitial[Replica]State into the stateloader package goes quite smoothly. Release note: None
TFTRs! bors r=bdarnell,tschottdorf,nvanbenschoten |
Timed out (retrying...) |
bors r=bdarnell,tschottdorf,nvanbenschoten |
Not awaiting review |
Build failed (retrying...) |
Build failed (retrying...) |
26917: batcheval,storage: move EndTransaction to batcheval r=bdarnell,tschottdorf,nvanbenschoten a=benesch Move the last remaining command, EndTransaction, to the batcheval package, where it logically belongs. In doing so, resolve a longstanding TODO. The one-phase commit logic still lives in storage and, unfortunately, ends up tightly coupled with the EndTransaction machinery in batcheval, but this is a step in the right direction. By contrast, the extraction of writeInitial[Replica]State into the stateloader package goes quite smoothly. This patch is strictly code movement. Everything was copy/pasted verbatim with the exception of adding/removing package qualifiers as necessary. Release note: None Co-authored-by: Nikhil Benesch <[email protected]>
Build succeeded |
Move the last remaining command, EndTransaction, to the batcheval
package, where it logically belongs. In doing so, resolve a longstanding
TODO.
The one-phase commit logic still lives in storage and, unfortunately,
ends up tightly coupled with the EndTransaction machinery in batcheval,
but this is a step in the right direction. By contrast, the extraction
of writeInitial[Replica]State into the stateloader package goes quite
smoothly.
This patch is strictly code movement. Everything was copy/pasted verbatim with the exception of adding/removing package qualifiers as necessary.
Release note: None