{"record":{"id":"1a472e4799868ed4","repo":"apache/hadoop","slug":"error-in-trace","errorCode":null,"errorMessage":"Error in trace","messagePattern":"Error in trace","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java","lineNumber":544,"sourceCode":"        \n        factory.start();\n        statistics.start();\n      } catch (Throwable e) {\n        LOG.error(\"Startup failed. \" + e.toString() + \"\\n\");\n        LOG.debug(\"Startup failed\", e);\n        if (factory != null) factory.abort(); // abort pipeline\n        exitCode = STARTUP_FAILED_ERROR;\n      } finally {\n        // signal for factory to start; sets start time\n        startFlag.countDown();\n      }\n      if (factory != null) {\n        // wait for input exhaustion\n        factory.join(Long.MAX_VALUE);\n        final Throwable badTraceException = factory.error();\n        if (null != badTraceException) {\n          LOG.error(\"Error in trace\", badTraceException);\n          throw new IOException(\"Error in trace\", badTraceException);\n        }\n        // wait for pending tasks to be submitted\n        submitter.shutdown();\n        submitter.join(Long.MAX_VALUE);\n        // wait for running tasks to complete\n        monitor.shutdown();\n        monitor.join(Long.MAX_VALUE);\n\n        statistics.shutdown();\n        statistics.join(Long.MAX_VALUE);\n\n      }\n    } finally {\n      if (factory != null) {\n        summarizer.finalize(factory, traceIn, genbytes, userResolver, stats, \n                            conf);\n      }\n      IOUtils.cleanupWithLogger(LOG, trace);","sourceCodeStart":526,"sourceCodeEnd":562,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java#L526-L562","documentation":"Error \"Error in trace\" thrown in apache/hadoop.","triggerScenarios":"Gridmix fails to read or parse the job trace file provided as input, e.g. because the trace is corrupted, truncated, or in an unsupported format.","commonSituations":"See trigger scenarios.","solutions":["Validate the trace file format (use Rumen or the SLS trace format Gridmix expects) and regenerate the trace."],"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"}