Skip to content

Commit a3125a9

Browse files
Add warn logs for remote backpressure rejection (#13218) (#13228)
(cherry picked from commit 8bd0ad9) Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> 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>
1 parent 5f8ffee commit a3125a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/main/java/org/opensearch/index/remote/RemoteStorePressureService.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ public void validateSegmentsUploadLag(ShardId shardId) {
7878
for (LagValidator lagValidator : lagValidators) {
7979
if (lagValidator.validate(remoteSegmentTransferTracker, shardId) == false) {
8080
remoteSegmentTransferTracker.incrementRejectionCount(lagValidator.name());
81-
throw new OpenSearchRejectedExecutionException(lagValidator.rejectionMessage(remoteSegmentTransferTracker, shardId));
81+
String rejectionMessage = lagValidator.rejectionMessage(remoteSegmentTransferTracker, shardId);
82+
logger.warn("Rejecting write requests for shard due to remote backpressure: {}", rejectionMessage);
83+
throw new OpenSearchRejectedExecutionException(rejectionMessage);
8284
}
8385
}
8486
}

0 commit comments

Comments
 (0)