Details
-
Bug
-
Status: Patch Available
-
Trivial
-
Resolution: Unresolved
-
2.7.1
-
None
Description
If capacity scheduler is set with two queues to 60% and 40% capacity, due to a java float floating representation issue
> hadoop queue -list
======================
Queue Name : default
Queue State : running
Scheduling Info : Capacity: 40.0, MaximumCapacity: 100.0, CurrentCapacity: 0.0
======================
Queue Name : large
Queue State : running
Scheduling Info : Capacity: 60.000004, MaximumCapacity: 100.0, CurrentCapacity: 0.0
Because
System.err.println((0.6f) * 100);
results in 60.000004.