sharmaar12 commented on code in PR #7857:
URL: https://github.com/apache/hbase/pull/7857#discussion_r2913281110


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterFileSystem.java:
##########
@@ -405,14 +405,15 @@ private void negotiateActiveClusterSuffixFile(long wait) 
throws IOException {
           this.activeClusterSuffix = acs;
         } else {
           // throw error
-          LOG.info("rootdir {} : Active Cluster File Suffix {} ", rootdir, 
acs);
+          LOG.info("rootdir {} : Read replica active cluster file suffix {} ", 
rootdir, acs);
           throw new IOException("Cannot start master, because another cluster 
is running in active "
-            + "(read-write) mode on this storage location. Active Cluster Id: 
{} " + acs
-            + " This cluster Id: " + getClusterId());
+            + "(read-write) mode on this storage location. Active Cluster Id: 
" + acs
+            + ", This cluster Id: "
+            + new String(getSuffixFileDataToWrite(), StandardCharsets.UTF_8));
         }
         LOG.info(
-          "This is the active cluster on this storage location, " + "File 
Suffix {} : Suffix {} : ",
-          acs, getActiveClusterSuffix());
+          "Read Replica Cluster: This is the active cluster on this storage 
location with cluster id: {}",
+          new String(getSuffixFileDataToWrite(), StandardCharsets.UTF_8));
       } catch (FileNotFoundException fnfe) {
         // this is the active cluster, create active cluster suffix file if it 
does not exist
         FSUtils.setActiveClusterSuffix(fs, rootdir, 
getSuffixFileDataToWrite(), wait);

Review Comment:
   Done.



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

Reply via email to