apache/hadoop · error · EmptyResourceSkylineException

Trying to updateHistory ${recurrenceId} with empty resource

Error message

Trying to updateHistory ${recurrenceId} with empty resource skyline

What it means

Error "Trying to updateHistory ${recurrenceId} with empty resource skyline" thrown in apache/hadoop.

Source

Thrown at hadoop-tools/hadoop-resourceestimator/src/main/java/org/apache/hadoop/resourceestimator/skylinestore/impl/InMemoryStore.java:176

  @Override public final void updateHistory(final RecurrenceId recurrenceId,
      final List<ResourceSkyline> resourceSkylines)
      throws SkylineStoreException {
    inputValidator.validate(recurrenceId, resourceSkylines);
    writeLock.lock();
    try {
      if (skylineStore.containsKey(recurrenceId)) {
        // remove the null elements in the resourceSkylines
        List<ResourceSkyline> filteredInput = eliminateNull(resourceSkylines);
        if (filteredInput.size() > 0) {
          skylineStore.put(recurrenceId, filteredInput);
          LOGGER.info("Successfully updateHistory resource skylines for {}.",
              recurrenceId);
        } else {
          StringBuilder errMsg = new StringBuilder();
          errMsg.append("Trying to updateHistory " + recurrenceId
              + " with empty resource skyline");
          LOGGER.error(errMsg.toString());
          throw new EmptyResourceSkylineException(errMsg.toString());
        }
      } else {
        StringBuilder errMsg = new StringBuilder();
        errMsg.append(
            "Trying to updateHistory non-existing resource skylines for "
                + recurrenceId);
        LOGGER.error(errMsg.toString());
        throw new RecurrenceIdNotFoundException(errMsg.toString());
      }
    } finally {
      writeLock.unlock();
    }
  }

  @Override public final Map<RecurrenceId, List<ResourceSkyline>> getHistory(
      final RecurrenceId recurrenceId) throws SkylineStoreException {
    inputValidator.validate(recurrenceId);
    readLock.lock();

View on GitHub (pinned to 2add963021)

Solutions

  1. Provide a non-empty ResourceSkyline when calling updateHistory.

When it happens

Trigger: updateHistory is called with an empty resource skyline map for a recurring pipeline, which is not a valid update.

Common situations: See trigger scenarios.


AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22). Data as JSON: /api/errors/fbf220bd09b73076. Report an issue: GitHub.