chihsuan commented on code in PR #10240:
URL: https://github.com/apache/ozone/pull/10240#discussion_r3274150294


##########
hadoop-hdds/docs/content/interface/ReconApi.md:
##########
@@ -451,51 +598,126 @@ Returns set of keys/files pending for deletion.
 
 **Returns**
 
-   Returns set of directories pending for deletion.
+Returns the set of directories pending for deletion. Each entry in 
`deletedDirInfo` is a
+`KeyEntityInfo` describing one pending-delete directory (not a 
`RepeatedOmKeyInfo` like
+`/keys/deletePending`).
 
 ```json
 {
-  "lastKey": "vol1/bucket1/bucket1/dir1",
-  "replicatedTotal": -1530804718628866300,
-  "unreplicatedTotal": -1530804718628866300,
-  "deletedkeyinfo": [
+  "lastKey": "/vol1/bucket1/dir1",
+  "replicatedDataSize": 13824,
+  "unreplicatedDataSize": 4608,
+  "deletedDirInfo": [
     {
-      "omKeyInfoList": [
-        {
-          "metadata": {},
-          "objectID": 0,
-          "updateID": 0,
-          "parentObjectID": 0,
-          "volumeName": "sampleVol",
-          "bucketName": "bucketOne",
-          "keyName": "key_one",
-          "dataSize": -1530804718628866300,
-          "keyLocationVersions": [],
-          "creationTime": 0,
-          "modificationTime": 0,
-          "replicationConfig": {
-            "replicationFactor": "ONE",
-            "requiredNodes": 1,
-            "replicationType": "STANDALONE"
-          },
-          "fileChecksum": null,
-          "fileName": "key_one",
-          "acls": [],
-          "path": "0/key_one",
-          "file": false,
-          "latestVersionLocations": null,
-          "replicatedSize": -1530804718628866300,
-          "fileEncryptionInfo": null,
-          "objectInfo": "OMKeyInfo{volume='sampleVol', bucket='bucketOne', 
key='key_one', dataSize='-1530804718628866186', creationTime='0', objectID='0', 
parentID='0', replication='STANDALONE/ONE', fileChecksum='null}",
-          "updateIDset": false
-        }
-      ]
+      "key": "/-9223372036854775552/-9223372036854774016/dir1",
+      "path": "/vol1/bucket1/dir1",
+      "inStateSince": 1717000000000,
+      "size": 4608,
+      "replicatedSize": 13824,
+      "replicationInfo": {
+        "replicationFactor": "THREE",
+        "requiredNodes": 3,
+        "replicationType": "RATIS"
+      },
+      "creationTime": 1716900000000,
+      "modificationTime": 1716999999999,
+      "isKey": false
     }
   ],
   "status": "OK"
 }
 ```
 
+### GET /api/v1/keys/deletePending/summary
+
+**Returns**
+
+Returns a flat summary of all keys pending deletion across the cluster.
+
+```json
+{
+  "totalDeletedKeys": 8,
+  "totalReplicatedDataSize": 90000,
+  "totalUnreplicatedDataSize": 30000
+}
+```
+
+### GET /api/v1/keys/deletePending/dirs/summary
+
+**Returns**
+
+Returns the total count of directories pending deletion.
+
+```json
+{
+  "totalDeletedDirectories": 5
+}
+```
+
+### GET /api/v1/keys/listKeys
+
+**Parameters**
+
+* startPrefix (required)

Review Comment:
   Flipped to `required: false` with `default: /` to match 
`@DefaultValue(OM_KEY_PREFIX)`.  
https://github.com/apache/ozone/pull/10240/changes/2952f579b458cf9b28a6b953231ac8eb6b4195bd



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to