{"record":{"id":"aa3c5d1e106d90d6","repo":"apache/hadoop","slug":"interrupted","errorCode":null,"errorMessage":"interrupted","messagePattern":"interrupted","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java","lineNumber":593,"sourceCode":"          job.submit();\n          return job;\n        }\n      });\n\n      Cluster prev = cluster;\n      // update our Cluster instance with the one created by Job for submission\n      // (we can't pass our Cluster instance to Job, since Job wraps the config\n      // instance, and the two configs would then diverge)\n      cluster = job.getCluster();\n\n      // It is important to close the previous cluster instance\n      // to cleanup resources.\n      if (prev != null) {\n        prev.close();\n      }\n      return new NetworkedJob(job);\n    } catch (InterruptedException ie) {\n      throw new IOException(\"interrupted\", ie);\n    }\n  }\n\n  private Job getJobUsingCluster(final JobID jobid) throws IOException,\n  InterruptedException {\n    return clientUgi.doAs(new PrivilegedExceptionAction<Job>() {\n      public Job run() throws IOException, InterruptedException  {\n       return cluster.getJob(jobid);\n      }\n    });\n  }\n\n  protected RunningJob getJobInner(final JobID jobid) throws IOException {\n    try {\n      \n      Job job = getJobUsingCluster(jobid);\n      if (job != null) {\n        JobStatus status = JobStatus.downgrade(job.getStatus());","sourceCodeStart":575,"sourceCodeEnd":611,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java#L575-L611","documentation":"Error \"interrupted\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobClient.java:593 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The waiting thread was interrupted; retry the operation and check for external interrupts such as job kill or client shutdown."],"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-22T20:17:22.307Z"}