From f518c530081c30750a246cab51507cd8223e6f9f Mon Sep 17 00:00:00 2001 From: fjy Date: Mon, 24 Nov 2014 10:12:29 -0800 Subject: [PATCH] address cr --- .../server/coordinator/helper/DruidCoordinatorRuleRunner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorRuleRunner.java b/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorRuleRunner.java index 387ce89d09b..be17219faf7 100644 --- a/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorRuleRunner.java +++ b/server/src/main/java/io/druid/server/coordinator/helper/DruidCoordinatorRuleRunner.java @@ -90,7 +90,7 @@ public class DruidCoordinatorRuleRunner implements DruidCoordinatorHelper DateTime now = new DateTime(); MetadataRuleManager databaseRuleManager = paramsWithReplicationManager.getDatabaseRuleManager(); - final List segmentsWithMissingRules = Lists.newArrayListWithCapacity(10); + final List segmentsWithMissingRules = Lists.newArrayListWithCapacity(MAX_MISSING_RULES); int missingRules = 0; for (DataSegment segment : paramsWithReplicationManager.getAvailableSegments()) { List rules = databaseRuleManager.getRulesWithDefault(segment.getDataSource());