{"record":{"id":"a2e1131bbb09ac59","repo":"apache/hadoop","slug":"invalid-request-map-id-mapid-reducer-reduc","errorCode":null,"errorMessage":"Invalid request  Map Id = {mapId} Reducer = {reduce} Index Info Length = {info.mapSpillRecord.size()}","messagePattern":"Invalid request  Map Id = (.+?) Reducer = (.+?) Index Info Length = (.+?)","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/IndexCache.java","lineNumber":84,"sourceCode":"\n    if (info == null) {\n      info = readIndexFileToCache(fileName, mapId, expectedIndexOwner);\n    } else {\n      synchronized(info) {\n        while (isUnderConstruction(info)) {\n          try {\n            info.wait();\n          } catch (InterruptedException e) {\n            throw new IOException(\"Interrupted waiting for construction\", e);\n          }\n        }\n      }\n      LOG.debug(\"IndexCache HIT: MapId \" + mapId + \" found\");\n    }\n\n    if (info.mapSpillRecord.size() == 0 ||\n        info.mapSpillRecord.size() <= reduce) {\n      throw new IOException(\"Invalid request \" +\n        \" Map Id = \" + mapId + \" Reducer = \" + reduce +\n        \" Index Info Length = \" + info.mapSpillRecord.size());\n    }\n    return info.mapSpillRecord.getIndex(reduce);\n  }\n\n  private boolean isUnderConstruction(IndexInformation info) {\n    synchronized(info) {\n      return (null == info.mapSpillRecord);\n    }\n  }\n\n  private IndexInformation readIndexFileToCache(Path indexFileName,\n                                                String mapId,\n                                                String expectedIndexOwner)\n    throws IOException {\n    IndexInformation info;\n    IndexInformation newInd = new IndexInformation();","sourceCodeStart":66,"sourceCodeEnd":102,"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/IndexCache.java#L66-L102","documentation":"Error \"Invalid request  Map Id = {mapId} Reducer = {reduce} Index Info Length = {info.mapSpillRecord.size()}\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/IndexCache.java:84 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The requested map output index entry exceeds the cached spill record; verify the shuffle request references a valid mapId/reduce pair and regenerate the index by rerunning the map task."],"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"}