{"record":{"id":"6ef07d474a775a27","repo":"apache/hadoop","slug":"zone-zonename-is-already-submitted-for-re","errorCode":null,"errorMessage":"\"Zone \" + zoneName + \" is already submitted for re-encryption.\"","messagePattern":"\"Zone \" \\+ zoneName \\+ \" is already submitted for re-encryption\\.\"","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EncryptionZoneManager.java","lineNumber":666,"sourceCode":"   * Re-encrypts the given encryption zone path. If the given path is not the\n   * root of an encryption zone, an exception is thrown.\n   * @param zoneIIP encryption zone inodes in the path containing the file\n   * @param keyVersionName encryption zone version\n   * @throws IOException\n   */\n  List<XAttr> reencryptEncryptionZone(final INodesInPath zoneIIP,\n      final String keyVersionName) throws IOException {\n    assert dir.hasWriteLock();\n    if (reencryptionHandler == null) {\n      throw new IOException(\"No key provider configured, re-encryption \"\n          + \"operation is rejected\");\n    }\n    final List<XAttr> xAttrs = Lists.newArrayListWithCapacity(1);\n    final INode inode = zoneIIP.getLastINode();\n    final String zoneName = zoneIIP.getPath();\n    checkEncryptionZoneRoot(inode, zoneName);\n    if (getReencryptionStatus().hasRunningZone(inode.getId())) {\n      throw new IOException(\"Zone \" + zoneName\n          + \" is already submitted for re-encryption.\");\n    }\n    LOG.info(\"Zone {}({}) is submitted for re-encryption.\", zoneName,\n        inode.getId());\n    final XAttr xattr = FSDirEncryptionZoneOp\n        .updateReencryptionSubmitted(dir, zoneIIP, keyVersionName);\n    xAttrs.add(xattr);\n    reencryptionHandler.notifyNewSubmission();\n    return xAttrs;\n  }\n\n  /**\n   * Cancels the currently-running re-encryption of the given encryption zone.\n   * If the given path is not the root of an encryption zone,\n   * an exception is thrown.\n   * @param zoneIIP encryption zone inodes in the path containing the file\n   * @throws IOException\n   */","sourceCodeStart":648,"sourceCodeEnd":684,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EncryptionZoneManager.java#L648-L684","documentation":"Error \"\"Zone \" + zoneName + \" is already submitted for re-encryption.\"\" thrown in apache/hadoop.","triggerScenarios":"reencryptEncryptionZone on a zone that already has a re-encryption in progress.","commonSituations":"See trigger scenarios.","solutions":["Wait for the current re-encryption of the zone to finish before submitting another request.","Check re-encryption status with 'hdfs crypto -listReencryptionStatus'."],"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"}