diff --git a/bindings/java/src/test/com/apple/foundationdb/test/Context.java b/bindings/java/src/test/com/apple/foundationdb/test/Context.java index a594e088a1..151a4ba599 100644 --- a/bindings/java/src/test/com/apple/foundationdb/test/Context.java +++ b/bindings/java/src/test/com/apple/foundationdb/test/Context.java @@ -29,6 +29,7 @@ import java.util.Optional; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ConcurrentHashMap; import com.apple.foundationdb.Database; import com.apple.foundationdb.FDB; @@ -64,7 +65,7 @@ abstract class Context implements Runnable, AutoCloseable { private List children = new LinkedList<>(); private static Map transactionMap = new HashMap<>(); private static Map transactionRefCounts = new HashMap<>(); - private static Map tenantMap = new HashMap<>(); + private static Map tenantMap = new ConcurrentHashMap<>(); Context(Database db, byte[] prefix) { this.db = db;