Apache Solr open-source search software
SOLR-4895: An error should be returned when a rollback is attempted in SolrCloud mode.
Mark Robert Miller93b33b5fdb3d
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex b5e6c42a33b..acd77d32c98 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -112,6 +112,12 @@ Apache ZooKeeper 3.4.6Detailed Change List----------------------+Bug Fixes+----------------------++* SOLR-4895: An error should be returned when a rollback is attempted in SolrCloud mode.+ (Vamsee Yarlagadda via Mark Miller)+Other Changes---------------------diff --git a/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java b/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.javaindex 9dff50e28df..f1cfbfdbdbf 100644--- a/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java+++ b/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java@@ -670,6 +670,10 @@ public class DirectUpdateHandler2 extends UpdateHandler implements SolrCoreState*/@Overridepublic void rollback(RollbackUpdateCommand cmd) throws IOException {+ if (core.getCoreDescriptor().getCoreContainer().isZooKeeperAware()) {+ throw new UnsupportedOperationException("Rollback is currently not supported in SolrCloud mode. (SOLR-4895)");+ }+rollbackCommands.incrementAndGet();boolean error=true;