-
Notifications
You must be signed in to change notification settings - Fork 21
CNDB-15482: CNDB-15435: Only count live data size in bytes-based paging (#2010) #2020
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
base: main-5.0
Are you sure you want to change the base?
Conversation
…ng (#2010) Only count live data size when we are using bytes-sized limits. This prevents issues with paging when row purging or other unexpected transformation changes the size of the read rows. This fixes DBPE-16935 and DBPE-17751. Rebase notes: * nowInSec and minDeletionTime are not longs instead of ints (ref CASSANDRA-14227)
Checklist before you submit for review
|
|
@michaelsembwever it seems this fails on tests. Do you want me to review or fix the cherry-picking? |
Just pushed a commit disabling the size thresholds in the new tests, which seems to fix it. |
|
||
@Override | ||
public int dataSizeBeforePurge() | ||
public int liveDataSize(long nowInSec) |
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.
Nit: I'd move this method up so it's right after the very similar dataSize
method.
} | ||
|
||
@Override | ||
public int liveDataSize(long nowInSec) |
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.
Same as above, I'd move this to be right after dataSize()
|
❌ Build ds-cassandra-pr-gate/PR-2020 rejected by Butler9 regressions found Found 9 new test failures
Found 7 known test failures |
https://github.com/riptano/cndb/issues/15482
Port into main-5.0 commit d8005b7