Skip to content
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

Fix invalidation race in CachingHiveMetastore #10646

Merged
merged 9 commits into from
Jan 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/trino-plugin-toolkit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-annotations</artifactId>
<version>2.1.0</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
import static java.util.Objects.requireNonNull;

/**
* A Cache implementation similar to ones produced by {@code com.google.common.cache.CacheBuilder},
* but one that does not exhibits <a href="https://github.com/google/guava/issues/1881">Guava issue #1881</a>, i.e.
* a {@link #getIfPresent(Object)} after {@link #invalidate(Object)} is guaranteed to return {@code null} and
* {@link #get(Object, Callable)} after {@link #invalidate(Object)} is guaranteed to load a fresh value.
* A {@link Cache} implementation similar to ones produced by {@link CacheBuilder#build()}, but one that does not exhibit
* <a href="https://github.com/google/guava/issues/1881">Guava issue #1881</a>: a cache inspection with
* {@link #getIfPresent(Object)} or {@link #get(Object, Callable)} is guaranteed to return fresh state after
* {@link #invalidate(Object)}, {@link #invalidateAll(Iterable)} or {@link #invalidateAll()} were called.
*/
public class EvictableCache<K, V>
extends AbstractCache<K, V>
Expand Down
Loading