-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-46217: [C++][Parquet] Update the timestamp of parquet::encryption::TwoLevelCacheWithExpiration correctly #46283
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
Conversation
|
|
kou
left a comment
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.
+1
cpp/src/parquet/encryption/two_level_cache_with_expiration_test.cc
Outdated
Show resolved
Hide resolved
|
I'll try to see if I can fix the error during CI. It seems similar to #46203. |
|
I've rebased on git main and will merge if CI is ok. |
* RemoveExpiredEntriesFromCache didn't update the timestamp while it should. If it did, it would literally be CheckCacheForExpiredTokens(0.0). I've added a default value to CheckCacheForExpiredTokens to make it more natural and removed RemoveExpiredEntriesFromCache. * Update the call sites accordingly.
|
@kapoisu Sorry for forgetting about this! I rebased again and then merged. Thank you for your contribution! |
|
After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit eda9942. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
Rationale for this change
Fix the bug mentioned in #46217 (comment)
What changes are included in this PR?
Are these changes tested?
Yes. The original test didn't expose the problem because CheckCacheForExpiredTokens was only called once.
Are there any user-facing changes?
No.