activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuconic <...@git.apache.org>
Subject [GitHub] activemq-artemis pull request #2041: ARTEMIS-1825 Live-backup topology not c...
Date Wed, 25 Apr 2018 19:11:42 GMT
Github user clebertsuconic commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/2041#discussion_r184175230
  
    --- Diff: artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/brokerDiagram.js ---
    @@ -455,16 +457,27 @@ var ARTEMIS = (function(ARTEMIS) {
                                   addLinkIds("broker:" + broker.brokerId, "broker:" + "\""
+ remoteBroker.live + "\"", "network");
     
                                   var backup = remoteBroker.backup;
    +                              ARTEMIS.log.info("isbackup? " + backup);
                                   if (backup) {
                                      getOrAddBroker(false, "\"" + backup + "\"", remoteBroker.nodeID,
"remote", null, properties);
                                      addLinkIds("broker:" + "\"" + remoteBroker.live + "\"",
"broker:" + "\"" + backup + "\"", "network");
                                   }
                                }
                                else {
    -                              var backup = remoteBroker.backup;
    -                              if (backup) {
    -                                 getOrAddBroker(false, "\"" + remoteBroker.backup + "\"",
remoteBroker.nodeID, "remote", null, properties);
    -                                 addLinkIds("broker:" + broker.brokerId, "broker:" +
"\"" + remoteBroker.backup + "\"", "network");
    +                              var newBackReq = ARTEMISService.artemisConsole.isBackup(jolokia,
mBean);
    +                              var newBackup = newBackReq.value;
    +                              if (!newBackup) {
    +                                 ARTEMIS.log.info("yes I'm master right now");
    +                                 if (remoteBroker.backup) {
    +                                    getOrAddBroker(false, "\"" + remoteBroker.backup
+ "\"", remoteBroker.nodeID, "remote", null, properties);
    +                                    addLinkIds("broker:" + broker.brokerId, "broker:"
+ "\"" + remoteBroker.backup + "\"", "network");
    +                                 }
    +                              }
    +                              else {
    +                                 ARTEMIS.log.info("ok I'm backup!");
    --- End diff --
    
    debug message


---

Mime
View raw message