{"record":{"id":"5b71a59b5fe1a198","repo":"apache/hadoop","slug":"trying-to-updatehistory-non-existing-resource-skyl","errorCode":null,"errorMessage":"Trying to updateHistory non-existing resource skylines for ${recurrenceId}","messagePattern":"Trying to updateHistory non-existing resource skylines for (.+?)","errorType":"exception","errorClass":"RecurrenceIdNotFoundException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-resourceestimator/src/main/java/org/apache/hadoop/resourceestimator/skylinestore/impl/InMemoryStore.java","lineNumber":184,"sourceCode":"        List<ResourceSkyline> filteredInput = eliminateNull(resourceSkylines);\n        if (filteredInput.size() > 0) {\n          skylineStore.put(recurrenceId, filteredInput);\n          LOGGER.info(\"Successfully updateHistory resource skylines for {}.\",\n              recurrenceId);\n        } else {\n          StringBuilder errMsg = new StringBuilder();\n          errMsg.append(\"Trying to updateHistory \" + recurrenceId\n              + \" with empty resource skyline\");\n          LOGGER.error(errMsg.toString());\n          throw new EmptyResourceSkylineException(errMsg.toString());\n        }\n      } else {\n        StringBuilder errMsg = new StringBuilder();\n        errMsg.append(\n            \"Trying to updateHistory non-existing resource skylines for \"\n                + recurrenceId);\n        LOGGER.error(errMsg.toString());\n        throw new RecurrenceIdNotFoundException(errMsg.toString());\n      }\n    } finally {\n      writeLock.unlock();\n    }\n  }\n\n  @Override public final Map<RecurrenceId, List<ResourceSkyline>> getHistory(\n      final RecurrenceId recurrenceId) throws SkylineStoreException {\n    inputValidator.validate(recurrenceId);\n    readLock.lock();\n    try {\n      String pipelineId = recurrenceId.getPipelineId();\n      // User tries to getHistory all resource skylines in the skylineStore\n      if (pipelineId.equals(\"*\")) {\n        LOGGER\n            .info(\"Successfully query resource skylines for {}.\", recurrenceId);\n        return Collections.unmodifiableMap(skylineStore);\n      }","sourceCodeStart":166,"sourceCodeEnd":202,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-resourceestimator/src/main/java/org/apache/hadoop/resourceestimator/skylinestore/impl/InMemoryStore.java#L166-L202","documentation":"Error \"Trying to updateHistory non-existing resource skylines for ${recurrenceId}\" thrown in apache/hadoop.","triggerScenarios":"updateHistory is called for a recurrence id that does not exist in the InMemorySkylineStore; addHistory must be used first.","commonSituations":"See trigger scenarios.","solutions":["Call addHistory first for this recurrence id; updateHistory only works on existing entries."],"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"}