SaketaChalamchala commented on code in PR #7130:
URL: https://github.com/apache/ozone/pull/7130#discussion_r1751248743


##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java:
##########
@@ -2580,20 +2580,27 @@ public KeyProvider call() throws Exception {
 
   @Override
   public OzoneFsServerDefaults getServerDefaults() throws IOException {
+    if (omVersion.compareTo(OzoneManagerVersion.SERVER_DEFAULTS) < 0) {
+      return null;
+    }
     long now = Time.monotonicNow();
     if ((serverDefaults == null) ||
         (now - serverDefaultsLastUpdate > serverDefaultsValidityPeriod)) {
-      serverDefaults = ozoneManagerClient.getServerDefaults();
-      serverDefaultsLastUpdate = now;
+      try {
+        serverDefaults = ozoneManagerClient.getServerDefaults();

Review Comment:
   Thanks for the input @errose28. I was able to use service info to return 
server defaults. 



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