adoroszlai opened a new pull request #2663:
URL: https://github.com/apache/ozone/pull/2663
## What changes were proposed in this pull request?
`MiniOzoneClusterProvider` may timeout (100 seconds) while waiting for a
cluster to become available. In this case it simply returns `null` without
warning. This results in NPE when trying to use the cluster in test.
```
testAllDataNodeFailuresAfterScmPostFinalizeUpgrade Time elapsed: 100.076 s
<<< ERROR!
java.lang.NullPointerException
at
org.apache.hadoop.hdds.upgrade.TestHDDSUpgrade.init(TestHDDSUpgrade.java:173)
at
org.apache.hadoop.hdds.upgrade.TestHDDSUpgrade.setUp(TestHDDSUpgrade.java:135)
```
This change makes `MiniOzoneClusterProvider` throw exception if cluster
could not be started. This way test failure is a bit more explicit.
https://issues.apache.org/jira/browse/HDDS-5765
## How was this patch tested?
Regular CI.
https://github.com/adoroszlai/hadoop-ozone/runs/3651226035
--
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]