public class CdcrUpdateProcessor extends DistributedZkUpdateProcessor
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 |
clusterState, nodesCOMMIT_END_POINT, DISTRIB_FROM, DISTRIB_FROM_COLLECTION, DISTRIB_FROM_PARENT, DISTRIB_FROM_SHARD, DISTRIB_INPLACE_PREVVERSION, forwardToLeader, isIndexChanged, isLeader, isSubShardLeader, LOG_REPLAY, maxRetriesOnForward, maxRetriesToFollowers, replicaType, req, rsp, TEST_DISTRIB_SKIP_SERVERS, updateCommandnext| 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) |
amISubShardLeader, computeReplicaType, doClose, doDeleteById, doDeleteByQuery, doDistribAdd, doDistribDeleteById, doDistribDeleteByQuery, doDistribFinish, getLeaderUrl, getNodesByRoutingRules, getReplicaNodesForLeader, getSubShardLeaders, processAdd, processCommit, processDelete, processMergeIndexes, processRollback, setupRequest, setupRequest, shouldCloneCmdDocbucketHash, doDeleteByQuery, doLocalCommit, finish, getNonZkLeaderAssumptionclosepublic static final String CDCR_UPDATE
public CdcrUpdateProcessor(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
protected boolean versionAdd(AddUpdateCommand cmd) throws IOException
versionAdd in class DistributedUpdateProcessorIOException - If there is a low-level I/O error.protected boolean versionDelete(DeleteUpdateCommand cmd) throws IOException
versionDelete in class DistributedUpdateProcessorIOExceptionprotected ModifiableSolrParams filterParams(SolrParams params)
protected void versionDeleteByQuery(DeleteUpdateCommand cmd) throws IOException
versionDeleteByQuery in class DistributedUpdateProcessorIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.