b4cb044be9
This reverts commit 00fc15ac00
.
With Caffeine, accessing the cache from the cache loader is causing an
infinite loop [1]. Merging that change up to stable-2.15 exposed that
there is still at least one cache loader (PatchListLoader) accessing its
cache (PatchListCacheImpl).
The test going into an infinite loop on stable-2.15 is
RevisionDiffIT.rebaseHunksOneLineApartFromRegularHunkAreIdentified.
Revert the change until circular dependency is removed or a solution is
found to access the cache from the cache loader.
[1]https://github.com/ben-manes/caffeine/issues/89
Bug: Issue 8464
Change-Id: If65560b4a9bfcf0a03decaedd83ad000c6b28f4f
31 lines
680 B
Python
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",
|
|
],
|
|
)
|