apache/hadoop · error · IOException
"Zone " + zoneName + " is already submitted for re-encryptio
Error message
"Zone " + zoneName + " is already submitted for re-encryption."
What it means
Error ""Zone " + zoneName + " is already submitted for re-encryption."" thrown in apache/hadoop.
Source
Thrown at hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EncryptionZoneManager.java:666
* Re-encrypts the given encryption zone path. If the given path is not the
* root of an encryption zone, an exception is thrown.
* @param zoneIIP encryption zone inodes in the path containing the file
* @param keyVersionName encryption zone version
* @throws IOException
*/
List<XAttr> reencryptEncryptionZone(final INodesInPath zoneIIP,
final String keyVersionName) throws IOException {
assert dir.hasWriteLock();
if (reencryptionHandler == null) {
throw new IOException("No key provider configured, re-encryption "
+ "operation is rejected");
}
final List<XAttr> xAttrs = Lists.newArrayListWithCapacity(1);
final INode inode = zoneIIP.getLastINode();
final String zoneName = zoneIIP.getPath();
checkEncryptionZoneRoot(inode, zoneName);
if (getReencryptionStatus().hasRunningZone(inode.getId())) {
throw new IOException("Zone " + zoneName
+ " is already submitted for re-encryption.");
}
LOG.info("Zone {}({}) is submitted for re-encryption.", zoneName,
inode.getId());
final XAttr xattr = FSDirEncryptionZoneOp
.updateReencryptionSubmitted(dir, zoneIIP, keyVersionName);
xAttrs.add(xattr);
reencryptionHandler.notifyNewSubmission();
return xAttrs;
}
/**
* Cancels the currently-running re-encryption of the given encryption zone.
* If the given path is not the root of an encryption zone,
* an exception is thrown.
* @param zoneIIP encryption zone inodes in the path containing the file
* @throws IOException
*/View on GitHub (pinned to 2add963021)
Solutions
- Wait for the current re-encryption of the zone to finish before submitting another request.
- Check re-encryption status with 'hdfs crypto -listReencryptionStatus'.
When it happens
Trigger: reencryptEncryptionZone on a zone that already has a re-encryption in progress.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/6ef07d474a775a27.
Report an issue: GitHub.