-
Notifications
You must be signed in to change notification settings - Fork 597
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
refactor(storage): remove reading range tombstone in read path and compaction #15613
Conversation
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.
Generally LGTM, I'll review it later after the assertions in the tests are restored.
BTW, don't forget to remove unused comments. 🥰
Most comments are on ignored unit test. The tests are remained for reference. Some codes are commented out only to pass the compile. |
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.
Rest LGTM
src/storage/src/hummock/iterator/concat_delete_range_iterator.rs
Outdated
Show resolved
Hide resolved
src/storage/src/hummock/iterator/concat_delete_range_iterator.rs
Outdated
Show resolved
Hide resolved
The reason why it is compatible is because the read key range of dynamic filter doesn't overlap with the range tombstone, right? |
Yes. It seems that dynamic filter executor has a right table to store the watermark range, and when querying the left table, it will build a range that does not overlap with the range tombstone. |
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Resolve #14824
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
Prior to version 1.6, for streaming jobs using dynamic filter (such as materialized views with temporal filter
t > NOW() - INTERVAL '1 hour'
), and sinks with decouple enabled (enabled by default for append only kafka, pulsar sinks, or explicitly enabled by setting session variableset SINK_DECOUPLE=true
), we write range delete tombstones to our storage engine to do state cleaning. In release 1.6, we changed to use a much lighter way to do state cleaning, while maintaining compatibility with range delete tombstones. In the current release, we are going to deprecate the compatibility to range delete tombstones. Deprecating range delete tombstones is still compatible for materialized view with dynamic filter anyway. However, it may cause compatibility for sinks with decouple enabled if users upgrade to the current release version from a version before version 1.6.Therefore, it is not recommended to upgrade from a version before 1.6 directly to the current version. If you are doing so, please make sure that no sink is created with decouple enabled. In version 1.7, we supported an internal table
rw_sink_decouple
to see the decouple status of all sinks. It is not required, but recommended, to first upgrade to version 1.7, and then runselect * from rw_sink_decouple where is_decouple and watermark_vnode_count < 256
to see whether there is some incompatible sinks. If the query returns empty result, it means it's safe to upgrade to the current release version. In most cases that upgrade from version since 1.6, it should be compatible.