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

   This PR is to take care 2 requirements in Recon related to SCM DB Insights:
   
   SCM DB Insights:
   - Number of DELETED containers.
   - Number of blocks pending deletion.
       - Blocks pending deletion for open/closing containers.
       - Blocks pending deletion for closed containers.
   
   Please refer design doc for more info regarding this requirement: 
https://docs.google.com/document/d/1H4VjvNNHwKRac3XDSUCrBnfMOWhqNzxOIlbqwbcw6dI/edit?pli=1#heading=h.svsz97ukjffz
   
   As part of this PR, 2 new APIs being added:
   `GET - "api/v1/scmdbinsight//containers/deletedContainers"`
   Response returned sample - 
   {
      containers: [
      {
          containerId: 1,
          state: DELETED,
          pipelineId: "a10ffab6-8ed5-414a-aaf5-79890ff3e8a1",
          numOfKeys: 3,
          inStateSince: <stateEnterTime>
     },
     {
         containerId: 2,
         state: DELETED,
         pipelineId: "a10ffab6-8ed5-414a-aaf5-79890ff3e8a1",
         numOfKeys: 6,
         inStateSince: <stateEnterTime>
     }
     ]
   }
   
   GET - `"api/v1/scmdbinsight//containers/deletedContainers"`
   Response returned sample:
   {
         "OPEN": [
          {
             "containerId": 100,
             "localIDList": [
               1,
               2,
               3,
               4
             ],
             "localIDCount": 4,
             "txID": 1
           }
         ]
   }
   
   https://issues.apache.org/jira/browse/HDDS-8215
   
   ## How was this patch tested?
   
   This patch is tested using 2 methodologies:
   1. Functional test using postman to verify JSON response output from APIs.
   2. Another is using JUNIT tests to test corner cases of scenarios w.r.t 
arguments being passed in API and API's JSON response assertions.
   


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