mirror of https://github.com/apache/druid.git
remove useless config
This commit is contained in:
parent
d641d41f9e
commit
df1ad95075
|
@ -90,7 +90,7 @@ public class RetryQueryRunner<T> implements QueryRunner<T>
|
|||
}
|
||||
|
||||
final List<SegmentDescriptor> finalMissingSegs = getMissingSegments(context);
|
||||
if (!config.returnPartialResults() && !finalMissingSegs.isEmpty()) {
|
||||
if (!finalMissingSegs.isEmpty()) {
|
||||
throw new SegmentMissingException("No results found for segments[%s]", finalMissingSegs);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,16 +26,8 @@ public class RetryQueryRunnerConfig
|
|||
@JsonProperty
|
||||
private int numTries = 1;
|
||||
|
||||
@JsonProperty
|
||||
private boolean returnPartialResults = false;
|
||||
|
||||
public int numTries()
|
||||
{
|
||||
return numTries;
|
||||
}
|
||||
|
||||
public boolean returnPartialResults()
|
||||
{
|
||||
return returnPartialResults;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue