-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
changefeedccl: Add options to enable the use of MuxRangeFeed RPC #86448
Conversation
82c2604
to
bf97c61
Compare
@jayshrivastava I decided to remove 1 commit (adding similar option to rangefeed library). This one is now purely for changefeeds. |
@@ -74,8 +75,13 @@ func (p rangefeedFactory) Run(ctx context.Context, sink kvevent.Writer, cfg rang | |||
} | |||
g := ctxgroup.WithContext(ctx) | |||
g.GoCtx(feed.addEventsToBuffer) | |||
var rfOpts []kvcoord.RangeFeedOption | |||
if cfg.UseMux { |
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.
I don't think that this is ever set to true. Please add UseMux: f.useMux,
to the struct initialization in kvevent.runUntilTableEvent
.
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.
I assume what I said above is the intended behavior. As in, the changefeed should pass the setting down to the underlying rangefeed.
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.
Doh. Nice catch.
Enable changefeed to use `MuxRangeFeed` RPC if `changefeed.mux_rangefeed.enabled` is set to true. Release note (enterprise change): Changefeeds may opt in via `changefeed.mux_rangefeed.enabled` setting to use `MuxRangeFeed` RPC which multiplexes multipe range feed streams onto a single RPC stream per node. Release justification: add option to enable functionality that's disabled by default.
bors r+ |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
Build succeeded: |
Enable changefeed to use
MuxRangeFeed
RPC ifchangefeed.mux_rangefeed.enabled
is set to true.Release note (enterprise change): Changefeeds may opt in
via
changefeed.mux_rangefeed.enabled
setting to useMuxRangeFeed
RPC which multiplexes multipe range feed streamsonto a single RPC stream per node.
Release justification: add option to enable functionality
that's disabled by default.