Move logging for the amount of free disk to TRACE
Since this can potentially be logged for every `canRemain`, it's nicer to put it in TRACE rather than DEBUG. Resolves #12843
This commit is contained in:
parent
d7d3f4ca37
commit
f726e11da6
|
@ -466,8 +466,8 @@ public class DiskThresholdDecider extends AllocationDecider {
|
||||||
// If this node is already above the high threshold, the shard cannot remain (get it off!)
|
// If this node is already above the high threshold, the shard cannot remain (get it off!)
|
||||||
final double freeDiskPercentage = usage.getFreeDiskAsPercentage();
|
final double freeDiskPercentage = usage.getFreeDiskAsPercentage();
|
||||||
final long freeBytes = usage.getFreeBytes();
|
final long freeBytes = usage.getFreeBytes();
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
logger.debug("node [{}] has {}% free disk ({} bytes)", node.nodeId(), freeDiskPercentage, freeBytes);
|
logger.trace("node [{}] has {}% free disk ({} bytes)", node.nodeId(), freeDiskPercentage, freeBytes);
|
||||||
}
|
}
|
||||||
if (dataPath == null || usage.getPath().equals(dataPath) == false) {
|
if (dataPath == null || usage.getPath().equals(dataPath) == false) {
|
||||||
return allocation.decision(Decision.YES, NAME, "shard is not allocated on the most utilized disk");
|
return allocation.decision(Decision.YES, NAME, "shard is not allocated on the most utilized disk");
|
||||||
|
|
Loading…
Reference in New Issue