From 60e950fad8ca4272e03f29549d78ccd34c087b8b Mon Sep 17 00:00:00 2001 From: fjy Date: Wed, 12 Feb 2014 20:00:43 -0800 Subject: [PATCH] fix backwards compat issue with master --- server/src/main/java/io/druid/server/http/InfoResource.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/io/druid/server/http/InfoResource.java b/server/src/main/java/io/druid/server/http/InfoResource.java index 0786e51b34a..71b1dccc251 100644 --- a/server/src/main/java/io/druid/server/http/InfoResource.java +++ b/server/src/main/java/io/druid/server/http/InfoResource.java @@ -380,12 +380,12 @@ public class InfoResource } ); Set tiers = Sets.newHashSet(((LoadRule) rule).getTieredReplicants().keySet()); + tiers.remove(DruidServer.DEFAULT_TIER); String tier = DruidServer.DEFAULT_TIER; - if (tiers.size() > 1) { - tiers.remove(DruidServer.DEFAULT_TIER); + if (!tiers.isEmpty()) { tier = tiers.iterator().next(); } - + newRule.put("tier", tier); newRule.put("replicants", ((LoadRule) rule).getNumReplicants(tier));