Class MappingUpdatedAction
java.lang.Object
org.elasticsearch.cluster.action.index.MappingUpdatedAction
Called by shards in the cluster when their mapping was dynamically updated and it needs to be updated
in the cluster state meta data (and broadcast to all members).
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMappingUpdatedAction(Settings settings, ClusterSettings clusterSettings, ClusterService clusterService)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
sendUpdateMapping(Index index, String type, Mapping mappingUpdate, ActionListener<Void> listener)
void
void
updateMappingOnMaster(Index index, String type, Mapping mappingUpdate, ActionListener<Void> listener)
Update mappings on the master node, waiting for the change to be committed, but not for the mapping update to be applied on all nodes.
-
Field Details
-
INDICES_MAPPING_DYNAMIC_TIMEOUT_SETTING
public static final Setting<org.elasticsearch.core.TimeValue> INDICES_MAPPING_DYNAMIC_TIMEOUT_SETTING -
INDICES_MAX_IN_FLIGHT_UPDATES_SETTING
-
-
Constructor Details
-
MappingUpdatedAction
@Inject public MappingUpdatedAction(Settings settings, ClusterSettings clusterSettings, ClusterService clusterService)
-
-
Method Details
-
setClient
-
updateMappingOnMaster
public void updateMappingOnMaster(Index index, String type, Mapping mappingUpdate, ActionListener<Void> listener)Update mappings on the master node, waiting for the change to be committed, but not for the mapping update to be applied on all nodes. The timeout specified bytimeout
is the master node timeout (MasterNodeRequest.masterNodeTimeout()
), potentially waiting for a master node to be available. -
sendUpdateMapping
protected void sendUpdateMapping(Index index, String type, Mapping mappingUpdate, ActionListener<Void> listener)
-