Skip to content

Commit

Permalink
Fix testTargetThrottling (#105286)
Browse files Browse the repository at this point in the history
Backports #103397 to 7.17

Closes #104693
  • Loading branch information
DaveCTurner committed Feb 8, 2024
1 parent fa0f970 commit ce7d540
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,11 @@ public Settings onNodeStopped(String nodeName) {
*/
public void testTargetThrottling() throws Exception {
logger.info("--> starting node A with default settings");
final String nodeA = internalCluster().startNode();
final String nodeA = internalCluster().startNode(
Settings.builder()
// Use a high value so that when unthrottling recoveries we do not cause accidental throttling on the source node.
.put(RecoverySettings.INDICES_RECOVERY_MAX_BYTES_PER_SEC_SETTING.getKey(), "200mb")
);

logger.info("--> creating index on node A");
ByteSizeValue shardSize = createAndPopulateIndex(INDEX_NAME, 1, SHARD_COUNT, REPLICA_COUNT).getShards()[0].getStats()
Expand Down

0 comments on commit ce7d540

Please sign in to comment.