SOLR-4895: An error should be returned when a rollback is attempted in SolrCloud mode.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1619637 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-08-22 00:11:00 +00:00
parent 4a485d6877
commit 93b33b5fdb
2 changed files with 10 additions and 0 deletions

View File

@ -112,6 +112,12 @@ Apache ZooKeeper 3.4.6
Detailed 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
---------------------

View File

@ -670,6 +670,10 @@ public class DirectUpdateHandler2 extends UpdateHandler implements SolrCoreState
*/
@Override
public 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;