Uploaded image for project: 'Hama'
  1. Hama
  2. HAMA-970

Exception can occur if the size of splits is bigger than numBSPTasks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Trivial
    • Resolution: Unresolved
    • 0.7.0
    • None
    • bsp core
    • None

    Description

      In JonInProgress, it's possble to get Exception in initTasks().

      this.tasks = new TaskInProgress[numBSPTasks];
      for (int i = 0; i < splits.length; i++) {
        tasks[i] = new TaskInProgress(getJobID(), this.jobFile.toString(), splits[i], this.conf, this, i);
      }
      

      I'm not sure that numBSPTask is always bigger than splits.length.
      So, I think it's better to use bigger value to assign the tasks array.

      Attachments

        1. HAMA-970.patch
          0.7 kB
          JongYoon Lim

        Activity

          People

            Unassigned Unassigned
            seedengine JongYoon Lim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: