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, updateCommand
next
Constructor and Description |
---|
DistributedZkUpdateProcessor(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
bucketHash, doDeleteByQuery, doLocalCommit, filterParams, finish, getNonZkLeaderAssumption, versionAdd, versionDelete, versionDeleteByQuery
close
protected List<SolrCmdDistributor.Node> nodes
protected ClusterState clusterState
public DistributedZkUpdateProcessor(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
protected Replica.Type computeReplicaType()
computeReplicaType
in class DistributedUpdateProcessor
public void processCommit(CommitUpdateCommand cmd) throws IOException
processCommit
in class DistributedUpdateProcessor
IOException
public void processAdd(AddUpdateCommand cmd) throws IOException
processAdd
in class DistributedUpdateProcessor
IOException
protected void doDistribAdd(AddUpdateCommand cmd) throws IOException
doDistribAdd
in class DistributedUpdateProcessor
IOException
public void processDelete(DeleteUpdateCommand cmd) throws IOException
processDelete
in class DistributedUpdateProcessor
IOException
protected void doDeleteById(DeleteUpdateCommand cmd) throws IOException
doDeleteById
in class DistributedUpdateProcessor
IOException
protected void doDistribDeleteById(DeleteUpdateCommand cmd) throws IOException
DistributedUpdateProcessor
doDistribDeleteById
in class DistributedUpdateProcessor
cmd
- the delete commandIOException
- in case post processing failedprotected void doDeleteByQuery(DeleteUpdateCommand cmd) throws IOException
DistributedUpdateProcessor
doDeleteByQuery
in class DistributedUpdateProcessor
cmd
- the delete command being processedIOException
protected void doDistribDeleteByQuery(DeleteUpdateCommand cmd, List<SolrCmdDistributor.Node> replicas, DocCollection coll) throws IOException
DistributedUpdateProcessor
doDistribDeleteByQuery
in class DistributedUpdateProcessor
cmd
- delete commandreplicas
- list of Nodes replicascoll
- the collection in zookeeper DocCollection
.IOException
- in case post processing failedprotected String getLeaderUrl(String id)
getLeaderUrl
in class DistributedUpdateProcessor
id
- 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 DistributedUpdateProcessor
protected boolean amISubShardLeader(DocCollection coll, Slice parentSlice, String id, SolrInputDocument doc) throws InterruptedException
InterruptedException
protected 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()
UpdateRequestProcessor
doClose
in class UpdateRequestProcessor
public void processMergeIndexes(MergeIndexesCommand cmd) throws IOException
processMergeIndexes
in class UpdateRequestProcessor
IOException
public void processRollback(RollbackUpdateCommand cmd) throws IOException
processRollback
in class UpdateRequestProcessor
IOException
protected void doDistribFinish()
doDistribFinish
in class DistributedUpdateProcessor
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.