mirror of https://github.com/apache/druid.git
Merge branch 'bug-fix' into worker-resource
This commit is contained in:
commit
be2f153985
|
@ -20,6 +20,7 @@
|
|||
package com.metamx.druid.query;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.base.Predicates;
|
||||
import com.google.common.base.Throwables;
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.common.collect.Lists;
|
||||
|
@ -76,7 +77,7 @@ public class ChainedExecutionQueryRunner<T> implements QueryRunner<T>
|
|||
{
|
||||
this.exec = exec;
|
||||
this.ordering = ordering;
|
||||
this.queryables = Iterables.unmodifiableIterable(queryables);
|
||||
this.queryables = Iterables.unmodifiableIterable(Iterables.filter(queryables, Predicates.notNull()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -41,7 +41,7 @@ public class CountAggregatorFactory implements AggregatorFactory
|
|||
@JsonProperty("name") String name
|
||||
)
|
||||
{
|
||||
Preconditions.checkNotNull(name, "Must have a valid, non null aggregator name");
|
||||
Preconditions.checkNotNull(name, "Must have a valid, non-null aggregator name");
|
||||
|
||||
this.name = name;
|
||||
}
|
||||
|
|
|
@ -45,8 +45,8 @@ public class DoubleSumAggregatorFactory implements AggregatorFactory
|
|||
@JsonProperty("fieldName") final String fieldName
|
||||
)
|
||||
{
|
||||
Preconditions.checkNotNull(name, "Must have a valid, nonl null aggregator name");
|
||||
Preconditions.checkNotNull(fieldName, "Must have a valid, non null fieldName");
|
||||
Preconditions.checkNotNull(name, "Must have a valid, non-null aggregator name");
|
||||
Preconditions.checkNotNull(fieldName, "Must have a valid, non-null fieldName");
|
||||
|
||||
this.name = name;
|
||||
this.fieldName = fieldName;
|
||||
|
|
|
@ -51,8 +51,8 @@ public class HistogramAggregatorFactory implements AggregatorFactory
|
|||
@JsonProperty("breaks") final List<Float> breaksList
|
||||
)
|
||||
{
|
||||
Preconditions.checkNotNull(name, "Must have a valid, nonl null aggregator name");
|
||||
Preconditions.checkNotNull(fieldName, "Must have a valid, non null fieldName");
|
||||
Preconditions.checkNotNull(name, "Must have a valid, non-null aggregator name");
|
||||
Preconditions.checkNotNull(fieldName, "Must have a valid, non-null fieldName");
|
||||
|
||||
this.name = name;
|
||||
this.fieldName = fieldName;
|
||||
|
|
|
@ -63,11 +63,11 @@ public class JavaScriptAggregatorFactory implements AggregatorFactory
|
|||
@JsonProperty("fnCombine") final String fnCombine
|
||||
)
|
||||
{
|
||||
Preconditions.checkNotNull(name, "Must have a valid, non null aggregator name");
|
||||
Preconditions.checkNotNull(fieldNames, "Must have a valid, non null fieldNames");
|
||||
Preconditions.checkNotNull(fnAggregate, "Must have a valid, non null fnAggregate");
|
||||
Preconditions.checkNotNull(fnReset, "Must have a valid, non null fnReset");
|
||||
Preconditions.checkNotNull(fnCombine, "Must have a valid, non null fnCombine");
|
||||
Preconditions.checkNotNull(name, "Must have a valid, non-null aggregator name");
|
||||
Preconditions.checkNotNull(fieldNames, "Must have a valid, non-null fieldNames");
|
||||
Preconditions.checkNotNull(fnAggregate, "Must have a valid, non-null fnAggregate");
|
||||
Preconditions.checkNotNull(fnReset, "Must have a valid, non-null fnReset");
|
||||
Preconditions.checkNotNull(fnCombine, "Must have a valid, non-null fnCombine");
|
||||
|
||||
this.name = name;
|
||||
this.fieldNames = fieldNames;
|
||||
|
|
|
@ -45,8 +45,8 @@ public class LongSumAggregatorFactory implements AggregatorFactory
|
|||
@JsonProperty("fieldName") final String fieldName
|
||||
)
|
||||
{
|
||||
Preconditions.checkNotNull(name, "Must have a valid, nonl null aggregator name");
|
||||
Preconditions.checkNotNull(fieldName, "Must have a valid, non null fieldName");
|
||||
Preconditions.checkNotNull(name, "Must have a valid, non-null aggregator name");
|
||||
Preconditions.checkNotNull(fieldName, "Must have a valid, non-null fieldName");
|
||||
|
||||
this.name = name;
|
||||
this.fieldName = fieldName;
|
||||
|
|
|
@ -45,8 +45,8 @@ public class MaxAggregatorFactory implements AggregatorFactory
|
|||
@JsonProperty("fieldName") final String fieldName
|
||||
)
|
||||
{
|
||||
Preconditions.checkNotNull(name, "Must have a valid, non null aggregator name");
|
||||
Preconditions.checkNotNull(fieldName, "Must have a valid, non null fieldName");
|
||||
Preconditions.checkNotNull(name, "Must have a valid, non-null aggregator name");
|
||||
Preconditions.checkNotNull(fieldName, "Must have a valid, non-null fieldName");
|
||||
|
||||
this.name = name;
|
||||
this.fieldName = fieldName;
|
||||
|
|
|
@ -45,8 +45,8 @@ public class MinAggregatorFactory implements AggregatorFactory
|
|||
@JsonProperty("fieldName") final String fieldName
|
||||
)
|
||||
{
|
||||
Preconditions.checkNotNull(name, "Must have a valid, non null aggregator name");
|
||||
Preconditions.checkNotNull(fieldName, "Must have a valid, non null fieldName");
|
||||
Preconditions.checkNotNull(name, "Must have a valid, non-null aggregator name");
|
||||
Preconditions.checkNotNull(fieldName, "Must have a valid, non-null fieldName");
|
||||
|
||||
this.name = name;
|
||||
this.fieldName = fieldName;
|
||||
|
|
|
@ -21,12 +21,10 @@ package com.metamx.druid.loading;
|
|||
|
||||
import org.skife.config.Config;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
*/
|
||||
public abstract class HdfsDataSegmentPusherConfig
|
||||
{
|
||||
@Config("druid.pusher.hdfs.storageDirectory")
|
||||
public abstract File getStorageDirectory();
|
||||
public abstract String getStorageDirectory();
|
||||
}
|
||||
|
|
|
@ -668,7 +668,7 @@ public class DruidMaster
|
|||
synchronized (lock) {
|
||||
final LeaderLatch latch = leaderLatch.get();
|
||||
if (latch == null || !latch.hasLeadership()) {
|
||||
log.info("[%s] is master, not me. Phooey.", latch == null ? null : latch.getLeader().getId());
|
||||
log.info("LEGGO MY EGGO. [%s] is master.", latch == null ? null : latch.getLeader().getId());
|
||||
stopBeingMaster();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue