-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-8528. [Snapshot] Custom SnapshotCache implementation to replace LoadingCache #4567
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
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
ddfc4b7
HDDS-7935. [Snapshot] Custom SnapshotCache implementation to replace …
smengcl 3295b5f
Merge remote-tracking branch 'asf/master'
smengcl 817eeab
Call `cleanup()` at the end of `get()`.
smengcl 57f3793
Add UTs; implement `invalidate()`; fix `cleanup()` and `invalidateAll…
smengcl e86f1db
`RefCount` -> `ReferenceCounted`.
smengcl 8b57f1f
Wrap `OmSnapshot` in `ReferenceCounted` for `dbMap` value; Next: Expo…
smengcl 7fc5f97
Adjust every single usage of `OmSnapshot` with `ReferenceCounted<IOmM…
smengcl cc91744
Merge remote-tracking branch 'asf/master' into HDDS-7935-approach-1
smengcl cf76403
Remove `throws IOException` from `SnapshotCache#invalidateAll()` sign…
smengcl c46c2ff
Disable ref counting for active DB.
smengcl eed2451
Merge branch 'master' into HDDS-7935-approach-1
smengcl 820a61b
Fix compilation failure after merge master
smengcl 76047af
Fix checkstyle
smengcl c65c374
Fix basic (unit)
smengcl b71ca32
Move `checkForSnapshot()` call from Request to Response to ensure the…
smengcl 284c4d8
Do the same to OMKeyPurgeRequest/Response.
smengcl 3ea0ca5
Merge remote-tracking branch 'asf/master' into HDDS-7935-approach-1
smengcl c122390
Resolve merge conflict with HDDS-8717.
smengcl da0b7da
ReferenceCounted<T extends Closeable>
smengcl 56652d4
Revert "ReferenceCounted<T extends Closeable>"
smengcl a9d6e94
Implement SnapshotCache callback to be used by ReferenceCounted.
smengcl 75eaf7b
Fix NPE.
smengcl 98eff38
Add a test case using try-with-resources.
smengcl 5f63ddc
Merge remote-tracking branch 'asf/master' into HDDS-7935-approach-1
smengcl 44c8b03
Address comment; fix new cache usages in TestSnapshotDiffManager.
smengcl 3ffe7ac
Address comments.
smengcl c2746dc
`ReferenceCounted<T, U extends ReferenceCountedCallback>`
smengcl d4dcbb7
Address comments, batch 3.
smengcl 5639cd2
`synchronized (refCount)`. Address https://github.com/apache/ozone/pu…
smengcl 73a39b6
Wrap `cleanup()` in `synchronized (pendingEvictionList)`.
smengcl cd7b376
Make `pendingEvictionList` thread-safe.
smengcl 5457b3b
Implement `isConsistent()` helper method.
smengcl 555ebc4
findbugs
smengcl 82c524f
Use dedicated `Object refCountLock` to sync on.
smengcl f87bd61
Merge remote-tracking branch 'asf/master' into HDDS-7935-approach-1
smengcl 7a9c18d
Adapt new checkForSnapshot() usage to RC.
smengcl 8c99d7b
Remove old comment.
smengcl 1e46f9d
Merge remote-tracking branch 'asf/master' into HDDS-7935-approach-1
smengcl 8e7c691
Adapt new snapshotCache usage in tests.
smengcl c13c383
Add comment TODO on removalListener.
smengcl 03d3be7
Merge remote-tracking branch 'asf/master' into HDDS-7935-approach-1
smengcl 5da12ac
Fix potential race condition when the ref count is not increased soon…
smengcl ed4b209
Merge `OmMetadataManagerImpl` constructors back.
smengcl e3f4395
`OMDirectoriesPurgeResponseWithFSO` should take `SnapshotInfo`.
smengcl 0779bab
Misc
smengcl f1bb482
Merge remote-tracking branch 'asf/master' into HDDS-7935-approach-1
smengcl d17b6af
Adapt new usages of `checkForSnapshot` in KDS and TestKDS.
smengcl 25c9aa7
Remove unused imports.
smengcl 022e4c2
findbugs
smengcl 4fd0bde
Sync dbMap in `release()` when decrementing ref count.
smengcl 796e7f9
Fix lambda return value in `dbMap.compute()` in `release()`.
smengcl ed29fbd
Merge remote-tracking branch 'asf/master' into HDDS-7935-approach-1
smengcl 9854942
Revert compute() lambda return value to `v`; move `cleanup()` out of …
smengcl dd8182c
Merge remote-tracking branch 'asf/master' into HDDS-7935-approach-1
smengcl 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.