mirror of https://github.com/apache/lucene.git
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:
parent
4a485d6877
commit
93b33b5fdb
|
@ -112,6 +112,12 @@ Apache ZooKeeper 3.4.6
|
||||||
Detailed Change List
|
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
|
Other Changes
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|
|
@ -670,6 +670,10 @@ public class DirectUpdateHandler2 extends UpdateHandler implements SolrCoreState
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void rollback(RollbackUpdateCommand cmd) throws IOException {
|
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();
|
rollbackCommands.incrementAndGet();
|
||||||
|
|
||||||
boolean error=true;
|
boolean error=true;
|
||||||
|
|
Loading…
Reference in New Issue