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

   ## What changes were proposed in this pull request?
   
   This change added a new test class called TestReplicationManagerScenarios. 
It work via test definitions in JSON, such as:
   
   ```
     { "description": "Perfect Replication Ratis", "containerState": "CLOSED", 
"replicationConfig": "RATIS:THREE", "sequenceId": 12,
       "replicas": [
           { "state": "CLOSED", "index": 0, "datanode": "d1", "sequenceId": 0, 
"isEmpty": false, "origin": "o1"},
           { "state": "CLOSED", "index": 0, "datanode": "d2", "sequenceId": 0, 
"isEmpty": false, "origin": "o2"},
           { "state": "CLOSED", "index": 0, "datanode": "d3", "sequenceId": 0, 
"isEmpty": false, "origin": "o3"}
       ],
       "expectation": {},
       "commands": []
     }
   ```
   
   Which defines the container state and the replica states, along with 
expected commands and outputs from processing the container.
   
   For each scenario, it runs through the Replication Manager check phase, 
re-runs the check-phase in read only mode and also runs the processing phase, 
where RM will send commands to fix the problems.
   
   There are also some tests added to prove the framework is working, but 
further Jira's would allow us to expand the test scenarios and remove many 
similar unit tests that are harder to understand.
   
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9877
   
   ## How was this patch tested?
   
   This change adds only tests.
   


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