xicm commented on code in PR #5286:
URL: https://github.com/apache/hudi/pull/5286#discussion_r910856311


##########
hudi-common/src/test/java/org/apache/hudi/common/testutils/minicluster/HdfsTestService.java:
##########
@@ -103,7 +103,9 @@ public MiniDFSCluster start(boolean format) throws 
IOException {
 
   public void stop() {
     LOG.info("HDFS Minicluster service being shut down.");
-    miniDfsCluster.shutdown();
+    if (miniDfsCluster != null) {
+      miniDfsCluster.shutdown();
+    }

Review Comment:
   fix NullPointerException
   ```
   java.lang.NullPointerException
        at 
org.apache.hudi.common.testutils.minicluster.HdfsTestService.stop(HdfsTestService.java:106)
        at 
org.apache.hudi.utilities.testutils.UtilitiesTestBase.cleanupClass(UtilitiesTestBase.java:136)
   ```



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

Reply via email to