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) {
|
||||
pendingOps = true;
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue