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

c2c: print the cutover timestamp on cutover, avoid printing job ids #94706

Closed
lidorcarmel opened this issue Jan 4, 2023 · 1 comment · Fixed by #93755
Closed

c2c: print the cutover timestamp on cutover, avoid printing job ids #94706

lidorcarmel opened this issue Jan 4, 2023 · 1 comment · Fixed by #93755
Assignees
Labels
A-disaster-recovery C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-disaster-recovery

Comments

@lidorcarmel
Copy link
Contributor

lidorcarmel commented Jan 4, 2023

users working with c2c SQL commands should not see job ids, remove those from create/alter/etc.

when cutting over, print the cutover timestamp (that is sometimes picked by LATEST).

Jira issue: CRDB-23095

Epic CRDB-18749

@lidorcarmel lidorcarmel added the C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) label Jan 4, 2023
@lidorcarmel lidorcarmel self-assigned this Jan 4, 2023
@blathers-crl
Copy link

blathers-crl bot commented Jan 4, 2023

cc @cockroachdb/disaster-recovery

@craig craig bot closed this as completed in 39ee43d Jan 6, 2023
kvoli pushed a commit to kvoli/cockroach that referenced this issue Jan 10, 2023
93755: streamingest: c2c UX fixes r=lidorcarmel a=lidorcarmel

CREATE TENANT FROM REPLICATION: currently has an output (the job ids of the producer and consumer). This PR removes the output.

ALTER TENANT PAUSE/RESUME: currently prints the job id, and this PR removes the output.

ALTER TENANT COMPLETE: currently prints the job id. This PR changes the output to be the cutover timestamp. The rational is that the user may not know the cutover time because LATEST or NOW() etc. was used.

Fixes: cockroachdb#94706

Epic: CRDB-18752

Release note: None

94695: sql,descs,*: rewrite by-ID and by-name descriptor lookups r=postamar a=postamar

This commit replaces all Get(Mutable|Immutable)*By(ID|Name) methods on the
descs.Collection and their usages with the recently-introduced
By(ID|Name)Getter methods.

While this commit shouldn't fundamentally change anything as far as
functionality is concerned, it isn't strictly-speaking a refactor
because the default behaviors have been changed slightly to make them
consistent accross similar kinds of lookups. Here's an illustrative
example: previously, GetImmutableDatabaseByID and GetImmutableSchemaByID
would honor the Required flag while the other GetImmutable*ByID methods
would ignore it and return an error when the descriptor is not found,
presently all immutable by-ID lookups always return an error when the
descriptor is not found.

The new API does away with the tree.(Common|Object)LookupFlags and these
have been cleaned up because now only the resolver uses them.

Fixes cockroachdb#87753.

Release note: None

Co-authored-by: Lidor Carmel <[email protected]>
Co-authored-by: Marius Posta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-disaster-recovery C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-disaster-recovery
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant