HDDS-1872. Fix entry clean up from openKeyTable during complete MPU. (#1182)

This commit is contained in:
Bharat Viswanadham 2019-07-30 09:28:26 -07:00 committed by GitHub
parent bca86bd289
commit 88daa730a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1214,6 +1214,7 @@ public class KeyManagerImpl implements KeyManager {
multipartKey); multipartKey);
metadataManager.getKeyTable().putWithBatch(batch, metadataManager.getKeyTable().putWithBatch(batch,
ozoneKey, keyInfo); ozoneKey, keyInfo);
metadataManager.getOpenKeyTable().deleteWithBatch(batch, multipartKey);
store.commitBatchOperation(batch); store.commitBatchOperation(batch);
} }
return new OmMultipartUploadCompleteInfo(omKeyArgs.getVolumeName(), return new OmMultipartUploadCompleteInfo(omKeyArgs.getVolumeName(),