Github user dsmiley commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/528#discussion_r241945502
--- Diff:
solr/core/src/java/org/apache/solr/update/processor/DistributedStandaloneUpdateProcessor.java
---
@@ -56,8 +59,15 @@ public void doDeleteByQuery(DeleteUpdateCommand cmd)
throws IOException {
super.doDeleteByQuery(cmd, Collections.emptyList(), null);
}
+ @Override
+ protected void postProcessDeleteByQuery(DeleteUpdateCommand cmd,
+ List<SolrCmdDistributor.Node>
replicas, DocCollection coll) throws IOException {
+ // no op
+ }
+
@Override
boolean isLeader(UpdateCommand cmd) {
+ updateCommand = cmd;
--- End diff --
ouch this piece is ugly. a method like "is..." (or get...) should not
have side effects.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]