mirror of https://github.com/apache/druid.git
fix backwards compat issue with master
This commit is contained in:
parent
b019fea788
commit
60e950fad8
|
@ -380,12 +380,12 @@ public class InfoResource
|
|||
}
|
||||
);
|
||||
Set<String> 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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue