aboutsummaryrefslogtreecommitdiffstats
path: root/node-repository
diff options
context:
space:
mode:
authorJon Marius Venstad <jvenstad@yahoo-inc.com>2018-12-12 11:35:12 +0100
committerJon Marius Venstad <jvenstad@yahoo-inc.com>2018-12-12 11:35:12 +0100
commitf454c77caea83aa8dd16e5a540493fca9cb6d014 (patch)
treed827fe1a11e7955edfe68ee0ad70c7b4ff74620b /node-repository
parent2c5c0a762c8997016791bcc32e4016501afd31ba (diff)
Re-enable caching in cd-us-central-1
Diffstat (limited to 'node-repository')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java
index 852d47a4882..8710b47b914 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java
@@ -98,7 +98,7 @@ public class NodeRepository extends AbstractComponent {
*/
public NodeRepository(NodeFlavors flavors, Curator curator, Clock clock, Zone zone, NameResolver nameResolver,
DockerImage dockerImage, boolean useCuratorClientCache) {
- this.db = new CuratorDatabaseClient(flavors, curator, clock, zone, useCacheIn(zone, useCuratorClientCache));
+ this.db = new CuratorDatabaseClient(flavors, curator, clock, zone, useCuratorClientCache);
this.zone = zone;
this.clock = clock;
this.flavors = flavors;
@@ -112,14 +112,6 @@ public class NodeRepository extends AbstractComponent {
db.writeTo(state, db.getNodes(state), Agent.system, Optional.empty());
}
- private static boolean useCacheIn(Zone zone, boolean useCache) {
- if (zone.region().value().equals("cd-us-central-1")) {
- // TODO: Temporarily disabled in CD to see if allocation conflict is related to caching
- return false;
- }
- return useCache;
- }
-
/** Returns the curator database client used by this */
public CuratorDatabaseClient database() { return db; }