Преглед изворни кода

HDDS-884. Fix merge issue that causes NPE OzoneManager#httpServer. Contributed by Xiaoyu Yao.

Xiaoyu Yao пре 6 година
родитељ
комит
417951ab58

+ 1 - 0
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java

@@ -787,6 +787,7 @@ public final class OzoneManager extends ServiceRuntimeInfoImpl
     keyManager.start(configuration);
     omRpcServer.start();
     try {
+      httpServer = new OzoneManagerHttpServer(configuration, this);
       httpServer.start();
     } catch (Exception ex) {
       // Allow OM to start as Http Server failure is not fatal.