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/hadoop-ozone.git
The following commit(s) were added to refs/heads/master by this push:
new d57b868 HDDS-2776. NPE when stop recon while start recon failed (#376)
d57b868 is described below
commit d57b868af49aae33bcdcf90deb836d55c7131dbb
Author: mbl <[email protected]>
AuthorDate: Thu Dec 19 15:42:54 2019 +0800
HDDS-2776. NPE when stop recon while start recon failed (#376)
---
.../src/main/java/org/apache/hadoop/ozone/recon/ReconServer.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconServer.java
b/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconServer.java
index 11e7197..bf25b04 100644
---
a/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconServer.java
+++
b/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconServer.java
@@ -98,7 +98,9 @@ public class ReconServer extends GenericCli {
void stop() throws Exception {
LOG.info("Stopping Recon server");
- httpServer.stop();
+ if (httpServer != null) {
+ httpServer.stop();
+ }
OzoneManagerServiceProvider ozoneManagerServiceProvider = injector
.getInstance(OzoneManagerServiceProvider.class);
ozoneManagerServiceProvider.stop();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]