Skip to content

Commit

Permalink
OAK-4724: Prefetch external changes
Browse files Browse the repository at this point in the history
Update test to use a proper thread pool

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1758561 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mreutegg committed Aug 31, 2016
1 parent 421a69f commit c76acee
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.Iterator;
import java.util.List;
import java.util.Random;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
Expand Down Expand Up @@ -150,6 +151,7 @@ public NodeStore createNodeStore(int clusterNodeId) {
.setPersistentCache("target/persistentCache" + clusterNodeId + ",time,size=128")
.setJournalCache("target/journalCache" + clusterNodeId + ",time,size=128")
.memoryCacheSize(128 * MB)
.setExecutor(Executors.newCachedThreadPool())
.getNodeStore();
}
};
Expand Down

0 comments on commit c76acee

Please sign in to comment.