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
fix(cairo): fix reader reload after truncate table #2022
Conversation
core/src/test/java/io/questdb/cairo/FullFwdDataFrameCursorTest.java
Outdated
Show resolved
Hide resolved
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.
LGTM. Left a few questions.
core/src/test/java/io/questdb/griffin/AlterTableAttachPartitionTest.java
Show resolved
Hide resolved
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 for adding validation for index files!
I may have overlooked one more place that we might need to update: |
[PR Coverage check]😍 pass : 205 / 208 (98.56%) file detail
|
When table is truncated,
TableReader
did not truck this in thereload()
method and only reload partitions if they were missing. With the fix TableReader checkstruncateVersion
in_txn
file and when changed all fully reloads all the partitions.Attach and drop partitions forces same full reload on
TableReader