{"record":{"id":"71b5f50676d54c5d","repo":"apache/hadoop","slug":"cache-pool-poolname-does-not-exist","errorCode":null,"errorMessage":"Cache pool poolName does not exist.","messagePattern":"Cache pool poolName does not exist\\.","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":856,"sourceCode":"\n  /**\n   * Modify a cache pool.\n   * \n   * Only the superuser should be able to call this function.\n   *\n   * @param info\n   *          The info for the cache pool to modify.\n   */\n  public void modifyCachePool(CachePoolInfo info)\n      throws IOException {\n    assert namesystem.hasWriteLock(RwLockMode.FS);\n    StringBuilder bld = new StringBuilder();\n    try {\n      CachePoolInfo.validate(info);\n      String poolName = info.getPoolName();\n      CachePool pool = cachePools.get(poolName);\n      if (pool == null) {\n        throw new InvalidRequestException(\"Cache pool \" + poolName\n            + \" does not exist.\");\n      }\n      String prefix = \"\";\n      if (info.getOwnerName() != null) {\n        pool.setOwnerName(info.getOwnerName());\n        bld.append(prefix).\n          append(\"set owner to \").append(info.getOwnerName());\n        prefix = \"; \";\n      }\n      if (info.getGroupName() != null) {\n        pool.setGroupName(info.getGroupName());\n        bld.append(prefix).\n          append(\"set group to \").append(info.getGroupName());\n        prefix = \"; \";\n      }\n      if (info.getMode() != null) {\n        pool.setMode(info.getMode());\n        bld.append(prefix).append(\"set mode to \" + info.getMode());","sourceCodeStart":838,"sourceCodeEnd":874,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/CacheManager.java#L838-L874","documentation":"Error \"Cache pool poolName does not exist.\" thrown in apache/hadoop.","triggerScenarios":"modifyCachePool naming a pool that does not exist.","commonSituations":"See trigger scenarios.","solutions":["Check the pool name with hdfs cacheadmin -listPools and correct it; create the pool if it does not exist."],"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"}