This is an automated email from the ASF dual-hosted git repository. vivekratnavel 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 6551898 HDDS-3647. NPE while open datanode page since a pipeline no leader (#964) 6551898 is described below commit 6551898143aa0cd1b1480bee5853bf111ae23884 Author: maobaolong <307499...@qq.com> AuthorDate: Tue May 26 15:27:03 2020 +0800 HDDS-3647. NPE while open datanode page since a pipeline no leader (#964) --- .../src/main/java/org/apache/hadoop/ozone/recon/api/NodeEndpoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/NodeEndpoint.java b/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/NodeEndpoint.java index 2924435..487acf1 100644 --- a/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/NodeEndpoint.java +++ b/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/NodeEndpoint.java @@ -96,7 +96,7 @@ public class NodeEndpoint { leaderNode ); pipelines.add(datanodePipeline); - if (pipeline.getLeaderId().equals(datanode.getUuid())) { + if (datanode.getUuid().equals(pipeline.getLeaderId())) { leaderCount.getAndIncrement(); } } catch (PipelineNotFoundException ex) { --------------------------------------------------------------------- To unsubscribe, e-mail: ozone-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-commits-h...@hadoop.apache.org