mirror of https://github.com/apache/druid.git
fix more bugs with determining what is assignable and what is not
This commit is contained in:
parent
46571ddf69
commit
8b398533cb
|
@ -313,7 +313,7 @@ public class CachingClusteredClient<T> implements QueryRunner<T>
|
||||||
final MultipleSpecificSegmentSpec segmentSpec = new MultipleSpecificSegmentSpec(descriptors);
|
final MultipleSpecificSegmentSpec segmentSpec = new MultipleSpecificSegmentSpec(descriptors);
|
||||||
List<Interval> intervals = segmentSpec.getIntervals();
|
List<Interval> intervals = segmentSpec.getIntervals();
|
||||||
|
|
||||||
if (server.isRealtime() || !populateCache || isBySegment) {
|
if (!server.isAssignable() || !populateCache || isBySegment) {
|
||||||
resultSeqToAdd = clientQueryable.run(query.withQuerySegmentSpec(segmentSpec));
|
resultSeqToAdd = clientQueryable.run(query.withQuerySegmentSpec(segmentSpec));
|
||||||
} else {
|
} else {
|
||||||
resultSeqToAdd = toolChest.mergeSequences(
|
resultSeqToAdd = toolChest.mergeSequences(
|
||||||
|
|
|
@ -141,11 +141,6 @@ public class DruidServer implements Comparable
|
||||||
return getType().equalsIgnoreCase("historical") || getType().equalsIgnoreCase("bridge");
|
return getType().equalsIgnoreCase("historical") || getType().equalsIgnoreCase("bridge");
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isRealtime()
|
|
||||||
{
|
|
||||||
return getType().equalsIgnoreCase("realtime");
|
|
||||||
}
|
|
||||||
|
|
||||||
public DataSegment getSegment(String segmentName)
|
public DataSegment getSegment(String segmentName)
|
||||||
{
|
{
|
||||||
return segments.get(segmentName);
|
return segments.get(segmentName);
|
||||||
|
|
|
@ -704,7 +704,7 @@ public class RealtimePlumber implements Plumber
|
||||||
return ServerView.CallbackAction.UNREGISTER;
|
return ServerView.CallbackAction.UNREGISTER;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (server.isRealtime()) {
|
if (!server.isAssignable()) {
|
||||||
return ServerView.CallbackAction.CONTINUE;
|
return ServerView.CallbackAction.CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue