gerrit/gerrit-cache-h2/BUILD
Hugo Arès c6facdb695 Revert "Reduce chance of deadlock in account cache"
This reverts commit 00fc15ac00.

With Caffeine, accessing the cache from the cache loader is causing an
infinite loop [1]. On stable-2.14, the only circular dependency was removed
but it looks like there is another one on stable-2.15. Revert the change
until circular dependency is removed or a solution is found to access
the cache from the cache loader.

The test going into an infinite loop is
RevisionDiffIT.rebaseHunksOneLineApartFromRegularHunkAreIdentified.

[1]https://github.com/ben-manes/caffeine/issues/89

Bug: Issue 8464
Change-Id: If65560b4a9bfcf0a03decaedd83ad000c6b28f4f
2018-02-27 19:17:02 -05:00

31 lines
680 B
Python

load("//tools/bzl:junit.bzl", "junit_tests")
java_library(
name = "cache-h2",
srcs = glob(["src/main/java/**/*.java"]),
visibility = ["//visibility:public"],
deps = [
"//gerrit-common:server",
"//gerrit-extension-api:api",
"//gerrit-server:server",
"//lib:guava",
"//lib:h2",
"//lib/guice",
"//lib/jgit/org.eclipse.jgit:jgit",
"//lib/log:api",
],
)
junit_tests(
name = "tests",
srcs = glob(["src/test/java/**/*.java"]),
deps = [
":cache-h2",
"//gerrit-server:server",
"//lib:guava",
"//lib:h2",
"//lib:junit",
"//lib/guice",
],
)