{"record":{"id":"41cf0292135d4346","repo":"apache/hadoop","slug":"unknown-pool-poolname","errorCode":null,"errorMessage":"Unknown pool poolName","messagePattern":"Unknown pool poolName","errorType":"exception","errorClass":"InvalidRequestException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/CacheManager.java","lineNumber":537,"sourceCode":"      throw new InvalidRequestException(\"Invalid negative ID.\");\n    }\n    // Find the directive.\n    CacheDirective directive = directivesById.get(id);\n    if (directive == null) {\n      throw new InvalidRequestException(\"No directive with ID \" + id\n          + \" found.\");\n    }\n    return directive;\n  }\n\n  /**\n   * Get a CachePool by name, validating that it exists.\n   */\n  private CachePool getCachePool(String poolName)\n      throws InvalidRequestException {\n    CachePool pool = cachePools.get(poolName);\n    if (pool == null) {\n      throw new InvalidRequestException(\"Unknown pool \" + poolName);\n    }\n    return pool;\n  }\n\n  // RPC handlers\n\n  private void addInternal(CacheDirective directive, CachePool pool) {\n    boolean addedDirective = pool.getDirectiveList().add(directive);\n    assert addedDirective;\n    directivesById.put(directive.getId(), directive);\n    String path = directive.getPath();\n    directivesByPath.put(path, directive);\n    // Fix up pool stats\n    CacheDirectiveStats stats =\n        computeNeeded(directive.getPath(), directive.getReplication());\n    directive.addBytesNeeded(stats.getBytesNeeded());\n    directive.addFilesNeeded(directive.getFilesNeeded());\n","sourceCodeStart":519,"sourceCodeEnd":555,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/CacheManager.java#L519-L555","documentation":"Error \"Unknown pool poolName\" thrown in apache/hadoop.","triggerScenarios":"modifyCacheDirective referencing a cache pool name that does not exist.","commonSituations":"See trigger scenarios.","solutions":["Create the cache pool first with hdfs cacheadmin -addPool, or correct the pool name.","List pools with hdfs cacheadmin -listPools to verify the name."],"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"}