Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-629

Standalone job details page has strange value for number of cores

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.6.1, 0.7.0
    • 0.8.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?

      Attachments

        Activity

          People

            joshrosen Josh Rosen
            joshrosen Josh Rosen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: