From 15935fa86501810978103cae14ea7f65d0bb0aa4 Mon Sep 17 00:00:00 2001 From: Viraj Jasani Date: Wed, 15 Mar 2023 09:59:55 -0700 Subject: [PATCH] HDFS-16947. RBF NamenodeHeartbeatService to report error for not being able to register namenode in state store (#5470) --- .../server/federation/router/NamenodeHeartbeatService.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/NamenodeHeartbeatService.java b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/NamenodeHeartbeatService.java index 86e24a0b24a..9ffcea1a95c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/NamenodeHeartbeatService.java +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/NamenodeHeartbeatService.java @@ -317,11 +317,8 @@ public class NamenodeHeartbeatService extends PeriodicService { if (!resolver.registerNamenode(report)) { LOG.warn("Cannot register namenode {}", report); } - } catch (IOException e) { - LOG.info("Cannot register namenode in the State Store"); - } catch (Exception ex) { - LOG.error("Unhandled exception updating NN registration for {}", - getNamenodeDesc(), ex); + } catch (Exception e) { + LOG.error("Cannot register namenode {} in the State Store", getNamenodeDesc(), e); } }