The requested URL was not found on this server. 不管你信不信,反正我是没找到

这个代码的意思是什么

Elasticsearch | 作者 Charele | 发布于2021年09月08日 | 阅读数:1044

        transportService.registerRequestHandler(actionName, ThreadPool.Names.SAME, requestReader, this::handleOperationRequest);

        transportService.registerRequestHandler(transportPrimaryAction, executor, forceExecutionOnPrimary, true,
            in -> new ConcreteShardRequest<>(requestReader, in), this::handlePrimaryRequest);

        transportService.registerRequestHandler(transportReplicaAction, executor, true, true,
            in -> new ConcreteReplicaRequest<>(replicaRequestReader, in), this::handleReplicaRequest);
 
在TransportReplicationAction中,注册了3类请求的处理方法,
其中第2第3个是针对主分片和副分片的处理,
第1个是什么呢???
已邀请:

FFFrp

赞同来自:

this.transportPrimaryAction = actionName + "[p]"; 
this.transportReplicaAction = actionName + "[r]"; transportService.registerRequestHandler(actionName, request, ThreadPool.Names.SAME, new OperationTransportHandler());
actionName 不一样,类似请求分发的功能?

要回复问题请先登录注册