Set update mappings mater node timeout to 30 min (#38439)
This is related to #35975. We do not want a slow master to fail a recovery from remote process due to a slow put mappings call. This commit increases the master node timeout on this call to 30 mins.
This commit is contained in:
parent
f939c3c5ef
commit
fb0ec26fd4
|
@ -313,7 +313,8 @@ public class CcrRepository extends AbstractLifecycleComponent implements Reposit
|
|||
final IndexMetaData leaderIndexMetadata = indexMetadataFuture.actionGet(ccrSettings.getRecoveryActionTimeout());
|
||||
final MappingMetaData mappingMetaData = leaderIndexMetadata.mapping();
|
||||
if (mappingMetaData != null) {
|
||||
final PutMappingRequest putMappingRequest = CcrRequests.putMappingRequest(followerIndex.getName(), mappingMetaData);
|
||||
final PutMappingRequest putMappingRequest = CcrRequests.putMappingRequest(followerIndex.getName(), mappingMetaData)
|
||||
.masterNodeTimeout(TimeValue.timeValueMinutes(30));
|
||||
followerClient.admin().indices().putMapping(putMappingRequest).actionGet(ccrSettings.getRecoveryActionTimeout());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue