devmadhuu opened a new pull request, #4516:
URL: https://github.com/apache/ozone/pull/4516

   Few new APIs will be exposed in Recon for below information related to keys:
   Key Level Info (Tab 2): A new tab will be added in Recon to consume data 
from newly added APIs
   
   1. Number of open keys.
   2. Amount of data mapped to open keys.
   3. Number of pending delete keys.
   4. Amount of data mapped to pending delete keys
   5. Keys that are mapped to containers in DELETED state in SCM
   6. Should never happen, but we want to show this in case if any.
   7. Orphan keys/file paths and the amount of data mapped to such orphan 
keys/paths.
   8. Orphan key/file path.
   9. Amount of data mapped to such keys/files.
   10. Container Id holding such keys in OM.
   
   https://issues.apache.org/jira/browse/HDDS-8214
   
   For #1 - API request endpoint:
   
   GET Request - "api/v1/omdbinsight/openkeyinfo"
   Response:
   {
       replicatedTotal: 13824,
       unreplicatedTotal: 4608,
       entities: [
       {
           path: “/vol1/bucket1/key1”,
           keyState: “Open”,
           inStateSince: 1667564193026,
           size: 1024,
           replicatedSize: 3072,
           unreplicatedSize: 1024,
           replicationType: RATIS,
           replicationFactor: THREE  
       }.
      {
           path: “/vol1/bucket1/key2”,
           keyState: “Open”,
           inStateSince: 1667564193026,
           size: 512,
           replicatedSize: 1536,
           unreplicatedSize: 512,
           replicationType: RATIS,
           replicationFactor: THREE 
       }
     ]
   }
   
   ## How was this patch tested?
   
   (Please explain how this patch was tested. Ex: unit tests, manual tests)
   (If this patch involves UI changes, please attach a screen-shot; otherwise, 
remove this)
   


-- 
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