[
https://issues.apache.org/jira/browse/HDDS-6386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499241#comment-17499241
]
George Huang commented on HDDS-6386:
------------------------------------
Looks like there is a mismatch between received key delete request vs entries
in the keytable:
OMKeysDeleteRequest.java:
:
for (indexFailed = 0; indexFailed < length; indexFailed++) {
String keyName = deleteKeyArgs.getKeys(indexFailed);
String objectKey = omMetadataManager.getOzoneKey(volumeName, bucketName,
keyName);
OmKeyInfo omKeyInfo =
omMetadataManager.getKeyTable(getBucketLayout()).get(objectKey);
if (omKeyInfo == null) {
deleteStatus = false;
LOG.error("Received a request to delete a Key does not exist {}",
objectKey);
deleteKeys.remove(keyName);
unDeletedKeys.addKeys(keyName);
continue;
}
> Missing keys from keytable during bucket deletion
> -------------------------------------------------
>
> Key: HDDS-6386
> URL: https://issues.apache.org/jira/browse/HDDS-6386
> Project: Apache Ozone
> Issue Type: Bug
> Components: OM
> Reporter: George Huang
> Priority: Major
>
> Delete a bucket from command line via ofs:
> ozone fs -rm -skipTrash -r ofs://ozone1/vol1/tera-suite
> ozone-om.log shows multiple error:
> |11:21:18.228 AM|ERROR|OMKeysDeleteRequest|Received a request to delete a Key
> does not exist /vol1/tera-suite/1T-1-terasort-input/|
> |11:21:18.228 AM|ERROR|OMKeysDeleteRequest|Received a request to delete a Key
> does not exist /vol1/tera-suite/1T-1-terasort-output/|
> |11:21:18.228 AM|ERROR|OMKeysDeleteRequest|Received a request to delete a Key
> does not exist /vol1/tera-suite/1T-1-terasort-report/|
> |11:21:18.228 AM|ERROR|OMKeysDeleteRequest|Received a request to delete a Key
> does not exist /vol1/tera-suite/1T-2-terasort-input/|
> |11:21:18.228 AM|ERROR|OMKeysDeleteRequest|Received a request to delete a Key
> does not exist /vol1/tera-suite/1T-1-terasort-input/_SUCCESS|
> |11:21:18.228 AM|ERROR|OMKeysDeleteRequest|Received a request to delete a Key
> does not exist /vol1/tera-suite/1T-1-terasort-input/part-m-00000|
> |11:21:18.228 AM|ERROR|OMKeysDeleteRequest|Received a request to delete a Key
> does not exist /vol1/tera-suite/1T-1-terasort-input/part-m-00001|
> |11:21:18.228 AM|ERROR|OMKeysDeleteRequest|Received a request to delete a Key
> does not exist /vol1/tera-suite/1T-1-terasort-input/part-m-00002|
> |11:21:18.228 AM|ERROR|OMKeysDeleteRequest|Received a request to delete a Key
> does not exist /vol1/tera-suite/1T-1-terasort-input/part-m-00003|
> |11:21:18.228 AM|ERROR|OMKeysDeleteRequest|Received a request to delete a Key
> does not exist /vol1/tera-suite/1T-1-terasort-input/part-m-00004|
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]