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

   ## What changes were proposed in this pull request?
   
   HDDS-14547. Add SequenceId in the container info command
   
   Please describe your PR in detail:
   
   Added SequenceId number in the container info console output for the SCM and 
each of the replica.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-14547
   
   ## How was this patch tested?
   
   By running admin container info commands
   ```
   bash-5.1$ ozone admin container info 1
   Container id: 1
   Pipeline id: 24dc83ad-3b4b-4f05-8eed-cbe9050e7e21
   Write PipelineId: 24dc83ad-3b4b-4f05-8eed-cbe9050e7e21
   Write Pipeline State: OPEN
   Container State: OPEN
   SequenceId: 0
   Datanodes: 
[7ee711e8-6095-4cc4-8d06-ca4d80a01cd8/ozonesecure-ha-datanode1-1.ozonesecure-ha_ozone_net,
   
12cdb68c-ed54-47d9-bbbd-a281d88126be/ozonesecure-ha-datanode3-1.ozonesecure-ha_ozone_net,
   
bc60c92e-d7ec-4bf6-83aa-a8eff096e525/ozonesecure-ha-datanode2-1.ozonesecure-ha_ozone_net]
   Replicas: [State: OPEN; ReplicaIndex: 0; SequenceId: 0; Origin: 
bc60c92e-d7ec-4bf6-83aa-a8eff096e525; Location: 
bc60c92e-d7ec-4bf6-83aa-a8eff096e525/ozonesecure-ha-datanode2-1.ozonesecure-ha_ozone_net,
   State: OPEN; ReplicaIndex: 0; SequenceId: 0; Origin: 
12cdb68c-ed54-47d9-bbbd-a281d88126be; Location: 
12cdb68c-ed54-47d9-bbbd-a281d88126be/ozonesecure-ha-datanode3-1.ozonesecure-ha_ozone_net,
   State: OPEN; ReplicaIndex: 0; SequenceId: 0; Origin: 
7ee711e8-6095-4cc4-8d06-ca4d80a01cd8; Location: 
7ee711e8-6095-4cc4-8d06-ca4d80a01cd8/ozonesecure-ha-datanode1-1.ozonesecure-ha_ozone_net]
   
   bash-5.1$ ozone admin container close 1
   
   bash-5.1$ ozone admin container info 1
   Container id: 1
   Pipeline id: 24dc83ad-3b4b-4f05-8eed-cbe9050e7e21
   Write PipelineId: 24dc83ad-3b4b-4f05-8eed-cbe9050e7e21
   Write Pipeline State: OPEN
   Container State: CLOSING
   SequenceId: 2
   Datanodes: 
[7ee711e8-6095-4cc4-8d06-ca4d80a01cd8/ozonesecure-ha-datanode1-1.ozonesecure-ha_ozone_net,
   
12cdb68c-ed54-47d9-bbbd-a281d88126be/ozonesecure-ha-datanode3-1.ozonesecure-ha_ozone_net,
   
bc60c92e-d7ec-4bf6-83aa-a8eff096e525/ozonesecure-ha-datanode2-1.ozonesecure-ha_ozone_net]
   Replicas: [State: OPEN; ReplicaIndex: 0; SequenceId: 0; Origin: 
bc60c92e-d7ec-4bf6-83aa-a8eff096e525; Location: 
bc60c92e-d7ec-4bf6-83aa-a8eff096e525/ozonesecure-ha-datanode2-1.ozonesecure-ha_ozone_net,
   State: OPEN; ReplicaIndex: 0; SequenceId: 0; Origin: 
12cdb68c-ed54-47d9-bbbd-a281d88126be; Location: 
12cdb68c-ed54-47d9-bbbd-a281d88126be/ozonesecure-ha-datanode3-1.ozonesecure-ha_ozone_net,
   State: OPEN; ReplicaIndex: 0; SequenceId: 2; Origin: 
7ee711e8-6095-4cc4-8d06-ca4d80a01cd8; Location: 
7ee711e8-6095-4cc4-8d06-ca4d80a01cd8/ozonesecure-ha-datanode1-1.ozonesecure-ha_ozone_net]
   
   bash-5.1$ ozone admin container info 1
   Container id: 1
   Pipeline id: cee5d367-ef5f-4a3a-afef-ee6e3b60e917
   Write PipelineId: 24dc83ad-3b4b-4f05-8eed-cbe9050e7e21
   Write Pipeline State: OPEN
   Container State: CLOSED
   SequenceId: 2
   Datanodes: 
[bc60c92e-d7ec-4bf6-83aa-a8eff096e525/ozonesecure-ha-datanode2-1.ozonesecure-ha_ozone_net,
   
12cdb68c-ed54-47d9-bbbd-a281d88126be/ozonesecure-ha-datanode3-1.ozonesecure-ha_ozone_net,
   
7ee711e8-6095-4cc4-8d06-ca4d80a01cd8/ozonesecure-ha-datanode1-1.ozonesecure-ha_ozone_net]
   Replicas: [State: CLOSED; ReplicaIndex: 0; SequenceId: 2; Origin: 
bc60c92e-d7ec-4bf6-83aa-a8eff096e525; Location: 
bc60c92e-d7ec-4bf6-83aa-a8eff096e525/ozonesecure-ha-datanode2-1.ozonesecure-ha_ozone_net,
   State: CLOSED; ReplicaIndex: 0; SequenceId: 2; Origin: 
12cdb68c-ed54-47d9-bbbd-a281d88126be; Location: 
12cdb68c-ed54-47d9-bbbd-a281d88126be/ozonesecure-ha-datanode3-1.ozonesecure-ha_ozone_net,
   State: CLOSED; ReplicaIndex: 0; SequenceId: 2; Origin: 
7ee711e8-6095-4cc4-8d06-ca4d80a01cd8; Location: 
7ee711e8-6095-4cc4-8d06-ca4d80a01cd8/ozonesecure-ha-datanode1-1.ozonesecure-ha_ozone_net]
   ```
   


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