ChenSammi commented on code in PR #9282:
URL: https://github.com/apache/ozone/pull/9282#discussion_r2597553993


##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/HAUtils.java:
##########
@@ -97,10 +98,18 @@ public static ScmInfo getScmInfo(OzoneConfiguration conf) 
throws IOException {
         configuration.setFromObject(scmClientConfig);
       }
       return getScmBlockClient(configuration).getScmInfo();
+    } catch (ConfigurationException e) {
+      throw new IOException("Failed to get SCM info due to configuration 
error.\n" +
+          "Please verify SCM HA configuration properties:\n" +
+          "  - ozone.scm.service.ids\n" +
+          "  - ozone.scm.nodes.<serviceId>\n" +
+          "  - ozone.scm.address.<serviceId>.<nodeId>\n" +
+          "Common issues: missing service IDs, incorrect hostnames, or missing 
port numbers.\n" +
+          "Details: " + e.getMessage(), e);
     } catch (IOException e) {
       throw e;

Review Comment:
   Add a log here.
   LOG.error("Failed to get SCM info", e)



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to