{"record":{"id":"b57cc8f81b291612","repo":"apache/hadoop","slug":"zone-zoneid-status-cannot-be-found","errorCode":null,"errorMessage":"Zone ${zoneId} status cannot be found.","messagePattern":"Zone (.+?) status cannot be found\\.","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ReencryptionHandler.java","lineNumber":685,"sourceCode":"      currentBatch.add(inode.asFile());\n      return true;\n    }\n\n    /**\n     * Check whether zone is ready for re-encryption. Throws IOE if it's not. 1.\n     * If EZ is deleted. 2. if the re-encryption is canceled. 3. If NN is not\n     * active or is in safe mode.\n     *\n     * @throws IOException\n     *           if zone does not exist / is cancelled, or if NN is not ready\n     *           for write.\n     */\n    @Override\n    protected void checkINodeReady(long zoneId) throws IOException {\n      final ZoneReencryptionStatus zs = getReencryptionStatus().getZoneStatus(\n          zoneId);\n      if (zs == null) {\n        throw new IOException(\"Zone \" + zoneId + \" status cannot be found.\");\n      }\n      if (zs.isCanceled()) {\n        throw new IOException(\"Re-encryption is canceled for zone \" + zoneId);\n      }\n      dir.getFSNamesystem().checkNameNodeSafeMode(\n          \"NN is in safe mode, cannot re-encrypt.\");\n      // re-encryption should be cancelled when NN goes to standby. Just\n      // double checking for sanity.\n      dir.getFSNamesystem().checkOperation(NameNode.OperationCategory.WRITE);\n    }\n\n    /**\n     * Submit the current batch to the thread pool.\n     *\n     * @param zoneId\n     *          Id of the EZ INode\n     * @throws IOException\n     * @throws InterruptedException","sourceCodeStart":667,"sourceCodeEnd":703,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ReencryptionHandler.java#L667-L703","documentation":"Error \"Zone ${zoneId} status cannot be found.\" thrown in apache/hadoop.","triggerScenarios":"The re-encryption handler cannot find status for the given encryption zone ID.","commonSituations":"Querying or processing a zone whose re-encryption was canceled or whose state was cleaned up.","solutions":["Verify the zone ID is valid and re-encryption state exists; the zone's re-encryption status may have been removed."],"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"}