public class CdcrUpdateProcessor extends DistributedUpdateProcessor
Extends DistributedUpdateProcessor
to force peer sync logic
for every updates. This ensures that the version parameter sent by the source cluster is kept
by the target cluster.
DistributedUpdateProcessor.DistribPhase, DistributedUpdateProcessor.DistributedUpdatesAsyncException, DistributedUpdateProcessor.LeaderRequestReplicationTracker, DistributedUpdateProcessor.RollupRequestReplicationTracker
Modifier and Type | Field and Description |
---|---|
static String |
CDCR_UPDATE |
COMMIT_END_POINT, DISTRIB_FROM, DISTRIB_FROM_COLLECTION, DISTRIB_FROM_PARENT, DISTRIB_FROM_SHARD, DISTRIB_INPLACE_PREVVERSION, LOG_REPLAY
Constructor and Description |
---|
CdcrUpdateProcessor(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
Modifier and Type | Method and Description |
---|---|
protected ModifiableSolrParams |
filterParams(SolrParams params) |
protected boolean |
versionAdd(AddUpdateCommand cmd) |
protected boolean |
versionDelete(DeleteUpdateCommand cmd) |
protected void |
versionDeleteByQuery(DeleteUpdateCommand cmd) |
doClose, doDeleteByQuery, finish, getNonZkLeaderAssumption, processAdd, processCommit, processDelete
close, processMergeIndexes, processRollback
public static final String CDCR_UPDATE
public CdcrUpdateProcessor(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
protected boolean versionAdd(AddUpdateCommand cmd) throws IOException
versionAdd
in class DistributedUpdateProcessor
IOException
- If there is a low-level I/O error.protected boolean versionDelete(DeleteUpdateCommand cmd) throws IOException
versionDelete
in class DistributedUpdateProcessor
IOException
protected ModifiableSolrParams filterParams(SolrParams params)
protected void versionDeleteByQuery(DeleteUpdateCommand cmd) throws IOException
versionDeleteByQuery
in class DistributedUpdateProcessor
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.