mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
Only log running out of slots when out of slots (#19637)
We were logging on every `refresh=wait_for`.
This commit is contained in:
parent
9d87314105
commit
56ee49255b
@ -207,7 +207,9 @@ public abstract class TransportWriteAction<
|
|||||||
if (location != null) {
|
if (location != null) {
|
||||||
pendingOps = true;
|
pendingOps = true;
|
||||||
indexShard.addRefreshListener(location, forcedRefresh -> {
|
indexShard.addRefreshListener(location, forcedRefresh -> {
|
||||||
logger.warn("block_until_refresh request ran out of slots and forced a refresh: [{}]", request);
|
if (forcedRefresh) {
|
||||||
|
logger.warn("block_until_refresh request ran out of slots and forced a refresh: [{}]", request);
|
||||||
|
}
|
||||||
respond.respondAfterAsyncAction(forcedRefresh);
|
respond.respondAfterAsyncAction(forcedRefresh);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user