This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 79716f0 HDDS-5765. Test cluster provider possibly returns null (#2663)
79716f0 is described below
commit 79716f0f699fdcb3e7962300773997f568540efe
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Tue Sep 21 12:02:13 2021 +0200
HDDS-5765. Test cluster provider possibly returns null (#2663)
---
.../test/java/org/apache/hadoop/ozone/MiniOzoneClusterProvider.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterProvider.java
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterProvider.java
index e2916cd..8904620 100644
---
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterProvider.java
+++
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterProvider.java
@@ -158,6 +158,9 @@ public class MiniOzoneClusterProvider {
+ "in the constructor");
}
MiniOzoneCluster cluster = clusters.poll(100, SECONDS);
+ if (cluster == null) {
+ throw new IOException("Failed to obtain available cluster in time");
+ }
createdClusters.add(cluster);
consumedClusterCount++;
return cluster;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]