Skip to content

Commit

Permalink
Add warn logs for remote backpressure rejection (#13218) (#13228)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8bd0ad9)

Signed-off-by: Gaurav Bafna <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 5f8ffee commit a3125a9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ public void validateSegmentsUploadLag(ShardId shardId) {
for (LagValidator lagValidator : lagValidators) {
if (lagValidator.validate(remoteSegmentTransferTracker, shardId) == false) {
remoteSegmentTransferTracker.incrementRejectionCount(lagValidator.name());
throw new OpenSearchRejectedExecutionException(lagValidator.rejectionMessage(remoteSegmentTransferTracker, shardId));
String rejectionMessage = lagValidator.rejectionMessage(remoteSegmentTransferTracker, shardId);
logger.warn("Rejecting write requests for shard due to remote backpressure: {}", rejectionMessage);
throw new OpenSearchRejectedExecutionException(rejectionMessage);
}
}
}
Expand Down

0 comments on commit a3125a9

Please sign in to comment.