Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.6.1, 0.7.0
-
None
-
None
Description
When I view the job details page of a job running on a standalone cluster, I see the following strange output:
Cores: 2147483647 (400 Granted )
I'm not sure where 2147483647 is coming from (it's Integer.MAX_VALUE).
Looking at the code for this job details page, this is generated by the following:
<li><strong>Cores:</strong> @job.desc.cores (@job.coresGranted Granted @if(job.desc.cores == Integer.MAX_VALUE) { } else { , @job.coresLeft } ) </li>
I'm not sure what this is supposed to do; is the idea to display something like "Cores: totalCores (x granted, y pending)"? Does Integer.MAX_VALUE have any special significance when used as the number of cores in a JobDescription?