forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Delete Stale Keys from Disk AND RBM #13
Merged
+789
−105
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
52b9dfd
Update IndicesRequestCache.java
kiranprakash154 5bab65d
More updates to disk cache cleanup
kiranprakash154 4500090
register INDICES_REQUEST_CACHE_DISK_CLEAN_THRESHOLD_SETTING in cluste…
kiranprakash154 4199bc2
make INDICES_REQUEST_CACHE_DISK_CLEAN_INTERVAL_SETTING dynamic property
kiranprakash154 6e05b9d
minor changes
kiranprakash154 aa3c39c
change the way we calculate disk key staleness
kiranprakash154 83d70f7
fix breaking tests
kiranprakash154 caae291
Fix test to include IndexShard
kiranprakash154 9d0eab1
UT for testing invalidate of DiskTier is called
kiranprakash154 5c472ae
Introduce CleanupStatus to keysToClean
kiranprakash154 be10a16
use that cleanupStatus and logic to update staleKeyEntries
kiranprakash154 4c8b240
register INDICES_REQUEST_CACHE_DISK_CLEAN_INTERVAL_SETTING to cluster…
kiranprakash154 eeb973e
Add removal listener to update eh cache stats
kiranprakash154 f22cdaf
re-organize imports
kiranprakash154 280cb07
Add IT tests
kiranprakash154 27f122b
Merge branch 'feature/tiered-caching' into kp/delete-stale-keys
kiranprakash154 8f0b5bc
refactor cleanCache & cleanDiskCache to share methods
kiranprakash154 8c996b3
null checks for indexShard
kiranprakash154 4bd1503
some bugs i found
kiranprakash154 1911fa6
use assertNumCacheEntries
kiranprakash154 ae0b471
update print statement
kiranprakash154 fce110d
edit sleep time
kiranprakash154 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
peteralfonsi marked this conversation as resolved.
Show resolved
Hide resolved
|
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
Oops, something went wrong.
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.
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.
Set lower so the test doesn't take so long to run? Or does it flake if you do that
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.
it flakes, i'm setting the threshold low enough so that by the time the cleaner runs, we have inserted 2 entries.
and then put the tests to sleep until the cachecleaner runs the job. when test thread wakes up the entries would have been deleted.