fix bad defaults

This commit is contained in:
fjy 2014-08-08 10:46:36 -07:00
parent d4cf2763ac
commit f1409f751a
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public class PriorityTieredBrokerSelectorStrategy implements TieredBrokerSelecto
@JsonProperty("maxPriority") Integer maxPriority
)
{
this.minPriority = minPriority == null ? 1 : minPriority;
this.minPriority = minPriority == null ? 0 : minPriority;
this.maxPriority = maxPriority == null ? 1 : maxPriority;
}

View File

@ -60,7 +60,7 @@ public class TieredBrokerConfig
@NotNull
private List<TieredBrokerSelectorStrategy> strategies = Arrays.asList(
new TimeBoundaryTieredBrokerSelectorStrategy(),
new PriorityTieredBrokerSelectorStrategy(1, 1)
new PriorityTieredBrokerSelectorStrategy(0, 1)
);
// tier, <bard, numThreads>