-
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
release-23.1.0: TODO #101391
Merged
miretskiy
merged 3 commits into
cockroachdb:release-23.1.0
from
miretskiy:backport23.1.0-101187-99934
Apr 13, 2023
Merged
release-23.1.0: TODO #101391
miretskiy
merged 3 commits into
cockroachdb:release-23.1.0
from
miretskiy:backport23.1.0-101187-99934
Apr 13, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix multiple related handling and encoding issues when using CDC queries. Assuming the following changefeed: `CREATE CHANGEFEED ... AS SELECT *, cdc_prev, event_op() FROM t` * Newly inserted rows will contain NULL in the `cdc_prev` column. * Deleted rows will emit all *primary key* columns; all other columns will be left `NULL`. `event_op` column will contain appropriate even op description (`deleted`) * `cdc_prev` tuple no longer contains cdc_mvcc_internal_timestamp column This was a bug that incorrectly made that column available in cdc_prev. If the application needs to determine how much time exlapsed since the previous update, the application should update an explicit timestamp column, and use that instead of the system column. The deleted row handling, when using CDC Queries, might be a bit awkward in that the row is still emitted, albeit with all but the primary key columns set to `NULL`. Of course, there is an `event_op()` function that can make the distinction between a new row with `NULL` values, or a deleted row. However, the customers may find `wrapped` envelope simpler to use (`WITH envelope='wrapped', format='json', diff`) would produce JSON object with `before` and `after` keys containing prior/current state of the row). This PR makes it possible to use `wrapped` envelope with `diff` option when using CDC queries. The `before` value in the output will always be an entire row -- without any projections. Fixes cockroachdb#101000 Release note (enterprise change): CDC queries now support wrapped envelope with diff (`envelope='wrapped', diff`).
Remove Fixes cockroachdb#32232 Remove TestChangefeedNodeShutdown. This test has been disabled since 2018; Other tests exist (e.g. `TestChangefeedHandlesDrainingNodes`) that verify restart behavior. Fixes cockroachdb#51842 Remove BenchmarkChangefeedTicks benchmark. This benchmark has been skipped since 2019. Attempts could be made to revive it; however, this benchmark had a lot of code, which accomplished questionable goals. The benchmark itself was unrepresentative (by using dependency injection), too small to be meaningful (1000 rows), and most likely would be too noise and inconclusive. We have added other micro benchmarks over time; and we conduct large scale testing, including with roachtests. Release note: None
Fixes cockroachdb#91548 Release note: None
Thanks for opening a backport. Please check the backport criteria before merging:
If some of the basic criteria cannot be satisfied, ensure that the exceptional criteria are satisfied within.
Add a brief release justification to the body of your PR to justify this backport. Some other things to consider:
|
HonoreDB
approved these changes
Apr 13, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport:
Please see individual PRs for details.
/cc @cockroachdb/release
Release justification: Usability fixes