-
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
c2c: refactor eventStream to track batch in seperate streamEventBatcher #106444
c2c: refactor eventStream to track batch in seperate streamEventBatcher #106444
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
a20f3bb
to
4b2e2f0
Compare
unrelated flake |
d006d86
to
baf383c
Compare
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.
Thanks for doing these kinda cleanups.
I left some nits, but they are mostly just notes for the next time we touch this code.
"github.com/cockroachdb/cockroach/pkg/roachpb" | ||
) | ||
|
||
type batchManager struct { |
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.
When I see manager
I typically think of something that oversees a collection of a thing. But, let's not bikeshed the name.
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.
refactored to streamEventBatcher
. we can further bikeshed after this pr merges :)
@@ -39,6 +39,7 @@ import ( | |||
func ScanSST( | |||
sst *kvpb.RangeFeedSSTable, | |||
scanWithin roachpb.Span, | |||
// TODO (msbutler): I think we can use a roachpb.kv instead, avoiding EncodeDecode roundtrip. |
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.
Interesting.
988f91e
to
3bdbc20
Compare
This is a small refactor cleans up the streamLoop() in the eventStream and makes it easier to emit spanConfig protos for zone config replication. Epic: none Release note: None
3bdbc20
to
8a2b868
Compare
bors r=stevendanna |
Build succeeded: |
This is a small refactor cleans up the streamLoop() in the eventStream and makes it easier to emit spanConfig protos for zone config replication.
Epic: none
Release note: None