public class DistributedZkUpdateProcessor extends DistributedUpdateProcessor
DistributedUpdateProcessor.DistribPhase, DistributedUpdateProcessor.DistributedUpdatesAsyncException, DistributedUpdateProcessor.LeaderRequestReplicationTracker, DistributedUpdateProcessor.RollupRequestReplicationTracker| Modifier and Type | Field and Description |
|---|---|
protected ClusterState |
clusterState |
protected List<SolrCmdDistributor.Node> |
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, updateCommandnext| Constructor and Description |
|---|
DistributedZkUpdateProcessor(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
bucketHash, doDeleteByQuery, doLocalCommit, filterParams, finish, getNonZkLeaderAssumption, versionAdd, versionDelete, versionDeleteByQuerycloseprotected List<SolrCmdDistributor.Node> nodes
protected ClusterState clusterState
public DistributedZkUpdateProcessor(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
protected Replica.Type computeReplicaType()
computeReplicaType in class DistributedUpdateProcessorpublic void processCommit(CommitUpdateCommand cmd) throws IOException
processCommit in class DistributedUpdateProcessorIOExceptionpublic void processAdd(AddUpdateCommand cmd) throws IOException
processAdd in class DistributedUpdateProcessorIOExceptionprotected void doDistribAdd(AddUpdateCommand cmd) throws IOException
doDistribAdd in class DistributedUpdateProcessorIOExceptionpublic void processDelete(DeleteUpdateCommand cmd) throws IOException
processDelete in class DistributedUpdateProcessorIOExceptionprotected void doDeleteById(DeleteUpdateCommand cmd) throws IOException
doDeleteById in class DistributedUpdateProcessorIOExceptionprotected void doDistribDeleteById(DeleteUpdateCommand cmd) throws IOException
DistributedUpdateProcessordoDistribDeleteById in class DistributedUpdateProcessorcmd - the delete commandIOException - in case post processing failedprotected void doDeleteByQuery(DeleteUpdateCommand cmd) throws IOException
DistributedUpdateProcessordoDeleteByQuery in class DistributedUpdateProcessorcmd - the delete command being processedIOExceptionprotected void doDistribDeleteByQuery(DeleteUpdateCommand cmd, List<SolrCmdDistributor.Node> replicas, DocCollection coll) throws IOException
DistributedUpdateProcessordoDistribDeleteByQuery in class DistributedUpdateProcessorcmd - delete commandreplicas - list of Nodes replicascoll - the collection in zookeeper DocCollection.IOException - in case post processing failedprotected String getLeaderUrl(String id)
getLeaderUrl in class DistributedUpdateProcessorid - id of docprotected List<SolrCmdDistributor.Node> setupRequest(String id, SolrInputDocument doc)
protected List<SolrCmdDistributor.Node> setupRequest(String id, SolrInputDocument doc, String route)
protected boolean shouldCloneCmdDoc()
shouldCloneCmdDoc in class DistributedUpdateProcessorprotected boolean amISubShardLeader(DocCollection coll, Slice parentSlice, String id, SolrInputDocument doc) throws InterruptedException
InterruptedExceptionprotected List<SolrCmdDistributor.Node> getReplicaNodesForLeader(String shardId, Replica leaderReplica)
protected List<SolrCmdDistributor.Node> getSubShardLeaders(DocCollection coll, String shardId, String docId, SolrInputDocument doc)
protected List<SolrCmdDistributor.Node> getNodesByRoutingRules(ClusterState cstate, DocCollection coll, String id, SolrInputDocument doc)
protected void doClose()
UpdateRequestProcessordoClose in class UpdateRequestProcessorpublic void processMergeIndexes(MergeIndexesCommand cmd) throws IOException
processMergeIndexes in class UpdateRequestProcessorIOExceptionpublic void processRollback(RollbackUpdateCommand cmd) throws IOException
processRollback in class UpdateRequestProcessorIOExceptionprotected void doDistribFinish()
doDistribFinish in class DistributedUpdateProcessorCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.