[raft] Pass down locality - #1627
Merged
Merged
Conversation
MariemBaccari
force-pushed
the
pass_down_locality
branch
3 times, most recently
from
August 12, 2026 08:41
245f829 to
3df8b12
Compare
MariemBaccari
force-pushed
the
pass_down_locality
branch
3 times, most recently
from
August 19, 2026 09:50
63c7faa to
9e91adf
Compare
MariemBaccari
marked this pull request as ready for review
August 19, 2026 09:53
MariemBaccari
force-pushed
the
pass_down_locality
branch
2 times, most recently
from
August 19, 2026 12:12
7d31bbb to
d214912
Compare
This was referenced Aug 19, 2026
MariemBaccari
force-pushed
the
pass_down_locality
branch
from
August 19, 2026 14:12
d214912 to
2be4dc2
Compare
This was referenced Aug 19, 2026
This was referenced Aug 20, 2026
mickmis
reviewed
Aug 26, 2026
mickmis
left a comment
Contributor
There was a problem hiding this comment.
LGTM modulo naming suggestion.
PS: this could be applied too to the timestamp package too.
Contributor
There was a problem hiding this comment.
About naming in this file: it is go-idiomatic to drop the package name from the entities contained in the package. In addition I suggest following doc of context.Value out of consistency. E.g. here:
type key struct {}FromContext(ctx context.Context) (string, error or bool) {}MustFromContext(ctx context.Context) string {}NewContext(ctx context.Context, locality string) context.Context {}Middleware(locality string) func(...) ... {}
mickmis
approved these changes
Aug 26, 2026
mickmis
left a comment
Contributor
There was a problem hiding this comment.
LGTM modulo naming suggestion.
PS: this could be applied too to the timestamp package too.
This was referenced Aug 28, 2026
MariemBaccari
force-pushed
the
pass_down_locality
branch
from
August 28, 2026 09:38
2be4dc2 to
ee2aaef
Compare
Contributor
Author
This was referenced Aug 28, 2026
Contributor
|
Note: ignored CI failure, which was flakyness (PR on top of this one succeeded). |
This file contains hidden or 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
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.
Chained PR: #1627 -> #1642 -> #1643 -> #1644 -> #1645 -> #1646 -> #1649 -> #1650 -> #1651 -> #1653 -> #1654 -> #1656 -> #1657 -> #1655 -> #1666 -> #1667 -> #1668 -> #1669
Pass down locality through consensus (needed for rid operations) mirroring the timestamp middleware.