aboutsummaryrefslogtreecommitdiff
path: root/exec/java-exec/src
diff options
context:
space:
mode:
authorJacques Nadeau <jacques@apache.org>2014-09-02 22:00:17 -0700
committerJacques Nadeau <jacques@apache.org>2014-09-02 22:00:17 -0700
commit09b00b1b7d2f65038a7d0da63bac89ab8ba8b4df (patch)
treeb050d4f3af8f5d876d04012671fe4544718d417a /exec/java-exec/src
parent1ce7c93909561cfd5ec79f2ada6eae47c61454d6 (diff)
DRILL-1369: Constrain code compilation cache.
Diffstat (limited to 'exec/java-exec/src')
-rw-r--r--exec/java-exec/src/main/java/org/apache/drill/exec/compile/CodeCompiler.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/compile/CodeCompiler.java b/exec/java-exec/src/main/java/org/apache/drill/exec/compile/CodeCompiler.java
index 2edc9021e..a9b0c61f6 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/compile/CodeCompiler.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/compile/CodeCompiler.java
@@ -45,7 +45,10 @@ public class CodeCompiler {
public CodeCompiler(DrillConfig config, DistributedCache distributedCache, OptionManager systemOptionManager){
this.transformer = new ClassTransformer(distributedCache);
this.distributedCache = distributedCache;
- this.cache = CacheBuilder.newBuilder().build(new Loader());
+ this.cache = CacheBuilder //
+ .newBuilder() //
+ .maximumSize(1000) //
+ .build(new Loader());
this.systemOptionManager = systemOptionManager;
this.config = config;
}