Skip to content

Commit

Permalink
invalidate children cache after key deleted apache#13487 apache#14779
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawyeok committed May 20, 2023
1 parent 1e664b7 commit d5e933c
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -385,6 +385,7 @@ private CompletableFuture<Void> deleteInternal(String path, Optional<Long> expec
// Ensure caches are invalidated before the operation is confirmed
return storeDelete(path, expectedVersion).thenRun(() -> {
existsCache.synchronous().invalidate(path);
childrenCache.synchronous().invalidate(path);
String parent = parent(path);
if (parent != null) {
childrenCache.synchronous().invalidate(parent);
Expand Down

0 comments on commit d5e933c

Please sign in to comment.