Skip to content
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

kvserver/rangefeed: move perRangeEventSink to rangefeed pacakge #129227

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

wenyihu6
Copy link
Contributor

kvserver/rangefeed: change p.Register to use registration interface

Previously, we introduced a registration interface to abstract the
implementation details of buffered and unbuffered registration. This patch
updates the p.Register function to use this interface as well.

Part of: #126560
Release note: none


kvserver/rangefeed: move perRangeEventSink to rangefeed pacakge

Previously, perRangeEventSink was defined in pkg/server/node.go. This patch
relocates it to the rangefeed package to facilitate future commits testing
within the rangefeed package itself.

Part of: #126560
Release note: none

Copy link

blathers-crl bot commented Aug 19, 2024

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.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@wenyihu6 wenyihu6 marked this pull request as ready for review August 19, 2024 13:07
@wenyihu6 wenyihu6 requested review from a team as code owners August 19, 2024 13:07
@wenyihu6 wenyihu6 requested review from nvanbenschoten and removed request for a team August 19, 2024 13:07
Copy link
Contributor Author

@wenyihu6 wenyihu6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely certain whether this movement is correct (it does feel like a node level concept). I made it so that we can do testing like this https://github.com/cockroachdb/cockroach/blob/ec95623917c6043e357a9c4ab288a1e21f516542/pkg/kv/kvserver/rangefeed/unbuffered_registration_test.go#L63-L65 with StreamMuxer in future commits. Alternatively, we can also just introduce a separate testing struct in the rangefeed package that replicates perRangeEventSink. Wdyt?

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @nvanbenschoten)

Previously, we introduced a registration interface to abstract the
implementation details of buffered and unbuffered registration. This patch
updates the p.Register function to use this interface as well.

Part of: cockroachdb#126560
Release note: none
Previously, perRangeEventSink was defined in pkg/server/node.go. This patch
relocates it to the rangefeed package to facilitate future commits testing
within the rangefeed package itself.

Part of: cockroachdb#126560
Release note: none
Copy link
Member

@nvanbenschoten nvanbenschoten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r1, 4 of 4 files at r3, 4 of 4 files at r4, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @wenyihu6)

@wenyihu6
Copy link
Contributor Author

TFTR!

bors r=nvanbenschoten

@craig craig bot merged commit ba7c94a into cockroachdb:master Aug 20, 2024
22 of 23 checks passed
@wenyihu6 wenyihu6 deleted the unreg1 branch August 20, 2024 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants