Skip to content

Commit

Permalink
Set update mappings mater node timeout to 30 min (#38439)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Tim-Brooks authored Feb 5, 2019
1 parent f939c3c commit fb0ec26
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ private void updateMappings(Client leaderClient, Index leaderIndex, long leaderM
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());
}
}
Expand Down

0 comments on commit fb0ec26

Please sign in to comment.