-
Notifications
You must be signed in to change notification settings - Fork 4k
workload: enable rangefeed with --changefeed #155804
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
Conversation
stevendanna
left a comment
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!
| log.Dev.Infof(ctx, "cursor: %s", cursorStr) | ||
|
|
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.
This seems duplicative of some of the log lines below.
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.
Removed
| if _, err := conn.Exec(ctx, "SET CLUSTER SETTING kv.rangefeed.enabled = true"); err != nil { | ||
| return err | ||
| } |
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.
This is going to fail if run against a secondary tenant.
Maybe before trying to set it, we could check if it is already set. The check should work in a secondary tenant and secondary tenants generally will have rangefeeds enabled.
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.
TIL - is this because of
| settings.SystemVisible, |
| if epoch, parseErr := strconv.ParseInt(cursorStr, 10, 64); parseErr == nil { | ||
| t := time.Unix(epoch, 0).UTC() |
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.
Might be better to use hlc.ParseHLC here?
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.
Dropped this commit. Going to add it as part of #156276.
This commit enables rangefeed when the --changefeed flag is specified with the workload command.
|
TFTR! bors r+ |
This commit enables rangefeed when the --changefeed flag is specified with the
workload command.
Epic: https://cockroachlabs.atlassian.net/browse/CRDB-55203
Release note: none