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

   ## What changes were proposed in this pull request?
   
   `TestRootedOzoneFileSystem#testSafeMode` (introduced for HDDS-8436) stops 
datanodes, restarts SCM and forces it to exit safe mode.  This leaves the 
cluster in a bad state, breaking other test cases.  Log is flooded due to an 
"infinite" loop trying to allocate block without datanodes.  (It's not really 
infinite, exits after at most 5 minutes, but by that time tests are aborted due 
to disk out of space error.)
   
   This PR extracts `testSafeMode` to a separate class, where the final state 
of the cluster is not a problem for other test cases.
   
   The same test is run for both OFS and O3FS.
   
   https://issues.apache.org/jira/browse/HDDS-8981
   
   ## How was this patch tested?
   
   ```
   $ mvn -am -pl :ozone-integration-test 
-Dtest='TestRootedOzoneFileSystem,TestSafeMode' clean test
   ...
   [WARNING] Tests run: 250, Failures: 0, Errors: 0, Skipped: 9, Time elapsed: 
332.357 s - in org.apache.hadoop.fs.ozone.TestRootedOzoneFileSystem
   [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
41.188 s - in org.apache.hadoop.fs.ozone.TestSafeMode
   ...
   [INFO] BUILD SUCCESS
   ```
   
   CI:
   https://github.com/adoroszlai/hadoop-ozone/actions/runs/5475617964


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