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, nodes
COMMIT_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, updateCommand
next
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, shouldCloneCmdDoc
bucketHash, doDeleteByQuery, doLocalCommit, finish, getNonZkLeaderAssumption
close
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-2019 Apache Software Foundation. All Rights Reserved.