@@ -186,7 +186,7 @@ public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, Routing
186186 logger .debug ("Less than the required {}% free disk threshold ({}% free) on node [{}], preventing allocation" ,
187187 freeDiskThresholdLow , freeDiskPercentage , node .nodeId ());
188188 }
189- return allocation .decision (Decision .NO , NAME , "less than required [%d %%] free disk on node, free: [%d %%]" ,
189+ return allocation .decision (Decision .NO , NAME , "less than required [%s %%] free disk on node, free: [%s %%]" ,
190190 freeDiskThresholdLow , freeDiskThresholdLow );
191191 }
192192
@@ -204,7 +204,7 @@ public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, Routing
204204 if (freeSpaceAfterShard < freeDiskThresholdHigh ) {
205205 logger .warn ("After allocating, node [{}] would have less than the required {}% free disk threshold ({}% free), preventing allocation" ,
206206 node .nodeId (), freeDiskThresholdHigh , freeSpaceAfterShard );
207- return allocation .decision (Decision .NO , NAME , "after allocation less than required [%d %%] free disk on node, free: [%d %%]" ,
207+ return allocation .decision (Decision .NO , NAME , "after allocation less than required [%s %%] free disk on node, free: [%s %%]" ,
208208 freeDiskThresholdLow , freeSpaceAfterShard );
209209 }
210210
@@ -266,7 +266,7 @@ public Decision canRemain(ShardRouting shardRouting, RoutingNode node, RoutingAl
266266 logger .debug ("Less than the required {}% free disk threshold ({}% free) on node {}, shard cannot remain" ,
267267 freeDiskThresholdHigh , freeDiskPercentage , node .nodeId ());
268268 }
269- return allocation .decision (Decision .NO , NAME , "after allocation less than required [%d %%] free disk on node, free: [%d %%]" ,
269+ return allocation .decision (Decision .NO , NAME , "after allocation less than required [%s %%] free disk on node, free: [%s %%]" ,
270270 freeDiskThresholdHigh , freeDiskPercentage );
271271 }
272272
0 commit comments