{"record":{"id":"65be2d628b52dc2e","repo":"apache/hadoop","slug":"job-priority-cannot-be-null-65be2d","errorCode":null,"errorMessage":"Job priority cannot be null.","messagePattern":"Job priority cannot be null\\.","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobStatus.java","lineNumber":260,"sourceCode":"  protected synchronized void setSetupProgress(float p) { \n    this.setupProgress = (float) Math.min(1.0, Math.max(0.0, p)); \n  }\n\n  /**\n   * Sets the reduce progress of this Job\n   * @param p The value of reduce progress to set to\n   */\n  protected synchronized void setReduceProgress(float p) { \n    this.reduceProgress = (float) Math.min(1.0, Math.max(0.0, p)); \n  }\n    \n  /**\n   * Set the priority of the job, defaulting to NORMAL.\n   * @param jp new job priority\n   */\n  protected synchronized void setPriority(JobPriority jp) {\n    if (jp == null) {\n      throw new IllegalArgumentException(\"Job priority cannot be null.\");\n    }\n    priority = jp;\n  }\n  \n  /** \n   * Set the finish time of the job\n   * @param finishTime The finishTime of the job\n   */\n  protected synchronized void setFinishTime(long finishTime) {\n    this.finishTime = finishTime;\n  }\n\n  /**\n   * Set the job history file url for a completed job\n   */\n  protected synchronized void setHistoryFile(String historyFile) {\n    this.historyFile = historyFile;\n  }","sourceCodeStart":242,"sourceCodeEnd":278,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobStatus.java#L242-L278","documentation":"Error \"Job priority cannot be null.\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/JobStatus.java:260 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a non-null JobPriority when constructing or updating the JobStatus."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-23T01:17:44.959Z"}