{"record":{"id":"931a60e6dfcb3602","repo":"apache/hadoop","slug":"re-encryption-is-canceled-for-zone-zoneid","errorCode":null,"errorMessage":"Re-encryption is canceled for zone ${zoneId}","messagePattern":"Re-encryption is canceled for zone (.+?)","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":688,"sourceCode":"\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\n     */\n    @Override\n    protected void submitCurrentBatch(final Long zoneId) throws IOException,","sourceCodeStart":670,"sourceCodeEnd":706,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ReencryptionHandler.java#L670-L706","documentation":"Error \"Re-encryption is canceled for zone ${zoneId}\" thrown in apache/hadoop.","triggerScenarios":"An admin cancels an in-progress re-encryption for the encryption zone.","commonSituations":"Running 'hdfs crypto -reencryptZone -action cancel' while background re-encryption threads are active.","solutions":["No fix needed if cancellation was intended; resubmit with '-action start' to restart re-encryption for the zone."],"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"}