Skip to content

Commit

Permalink
Remove Sequential Scheduler (#2631)
Browse files Browse the repository at this point in the history
* Removing unnecessary scheduler code

* More reference removal
  • Loading branch information
mineralntl authored Dec 6, 2024
1 parent 9c90bc2 commit 3a7faf6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 273 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public class ShardQueryConfiguration extends GenericQueryConfiguration implement
private boolean reduceQueryFieldsPerShard = false;
private boolean reduceTypeMetadata = false;
private boolean reduceTypeMetadataPerShard = false;
private boolean sequentialScheduler = false;
private boolean collectTimingDetails = false;
private boolean logTimingDetails = false;
private boolean sendTimingToStatsd = true;
Expand Down Expand Up @@ -568,7 +567,6 @@ public void copyFrom(ShardQueryConfiguration other) {
this.setRebuildDatatypeFilter(other.isRebuildDatatypeFilter());
this.setRebuildDatatypeFilterPerShard(other.isRebuildDatatypeFilterPerShard());
this.setParseTldUids(other.getParseTldUids());
this.setSequentialScheduler(other.getSequentialScheduler());
this.setCollectTimingDetails(other.getCollectTimingDetails());
this.setLogTimingDetails(other.getLogTimingDetails());
this.setSendTimingToStatsd(other.getSendTimingToStatsd());
Expand Down Expand Up @@ -2274,14 +2272,6 @@ public void setReduceTypeMetadataPerShard(boolean reduceTypeMetadataPerShard) {
this.reduceTypeMetadataPerShard = reduceTypeMetadataPerShard;
}

public boolean getSequentialScheduler() {
return sequentialScheduler;
}

public void setSequentialScheduler(boolean sequentialScheduler) {
this.sequentialScheduler = sequentialScheduler;
}

public boolean getLimitAnyFieldLookups() {
return limitAnyFieldLookups;
}
Expand Down Expand Up @@ -2828,7 +2818,6 @@ public boolean equals(Object o) {
getReduceTypeMetadataPerShard() == that.getReduceTypeMetadataPerShard() &&
isRebuildDatatypeFilter() == that.isRebuildDatatypeFilter() &&
isRebuildDatatypeFilterPerShard() == that.isRebuildDatatypeFilterPerShard() &&
getSequentialScheduler() == that.getSequentialScheduler() &&
getCollectTimingDetails() == that.getCollectTimingDetails() &&
getLogTimingDetails() == that.getLogTimingDetails() &&
getSendTimingToStatsd() == that.getSendTimingToStatsd() &&
Expand Down Expand Up @@ -3036,7 +3025,6 @@ public int hashCode() {
getReduceTypeMetadataPerShard(),
isRebuildDatatypeFilter(),
isRebuildDatatypeFilterPerShard(),
getSequentialScheduler(),
getCollectTimingDetails(),
getLogTimingDetails(),
getSendTimingToStatsd(),
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
import datawave.query.planner.QueryPlanner;
import datawave.query.scheduler.PushdownScheduler;
import datawave.query.scheduler.Scheduler;
import datawave.query.scheduler.SequentialScheduler;
import datawave.query.tables.stats.ScanSessionStats;
import datawave.query.transformer.DocumentTransform;
import datawave.query.transformer.DocumentTransformer;
Expand Down Expand Up @@ -1251,11 +1250,7 @@ protected void loadQueryModel(MetadataHelper helper, ShardQueryConfiguration con
}

protected Scheduler getScheduler(ShardQueryConfiguration config, ScannerFactory scannerFactory) {
if (config.getSequentialScheduler()) {
return new SequentialScheduler(config, scannerFactory);
} else {
return new PushdownScheduler(config, scannerFactory, this.metadataHelperFactory);
}
return new PushdownScheduler(config, scannerFactory, this.metadataHelperFactory);
}

public EventQueryDataDecoratorTransformer getEventQueryDataDecoratorTransformer() {
Expand Down Expand Up @@ -2359,14 +2354,6 @@ public void setLimitTermExpansionToModel(boolean shouldLimitTermExpansionToModel
getConfig().setLimitTermExpansionToModel(shouldLimitTermExpansionToModel);
}

public boolean getSequentialScheduler() {
return getConfig().getSequentialScheduler();
}

public void setSequentialScheduler(boolean sequentialScheduler) {
getConfig().setSequentialScheduler(sequentialScheduler);
}

public boolean getParseTldUids() {
return getConfig().getParseTldUids();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ public void setUp() throws Exception {
updatedValues.put("reduceTypeMetadata", true);
defaultValues.put("reduceTypeMetadataPerShard", false);
updatedValues.put("reduceTypeMetadataPerShard", true);
defaultValues.put("sequentialScheduler", false);
updatedValues.put("sequentialScheduler", true);
defaultValues.put("collectTimingDetails", false);
updatedValues.put("collectTimingDetails", true);
defaultValues.put("logTimingDetails", false);
Expand Down

0 comments on commit 3a7faf6

Please sign in to comment.