errose28 commented on PR #4212:
URL: https://github.com/apache/ozone/pull/4212#issuecomment-1413196396

   Following up on the testing part of this patch, the unit test is good, but 
it does not test the changes to `SCMStateMachine#applyTransaction`. It looks 
like this could be done by modifying 
`TestPipelineClose#testPipelineCloseWithClosedContainer` to use 1 node Ratis 
for SCM, then calling `pipelineManager#addContainerToPipeline` on the closed 
pipeline and check that an exception is thrown.
   
   I don't see a way to test that generic IOExceptions or SCMExceptions with 
fatal result codes terminate the SCM without failing the test due to JVM exit.


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