Uploaded image for project: 'Apache RocketMQ'
  1. Apache RocketMQ
  2. ROCKETMQ-37

Log output information is not accurate

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-incubating
    • None
    • None

    Description

      1. in MQClientManager#getAndCreateMQClientInstance line 57
      when generate a new key-value pair for client in factoryTable, if there was no mapping for the clientId previously, putIfAbsent will return null, and then output:
      "log.warn("Previous MQClientInstance has created for clientId:[{}]", clientId);"
      this is wrong, it should output in condition prev != null

      2. in SubscriptionGroupManager#deleteSubscriptionGroupConfig line 187
      if program execute:
      log.warn("delete subscription group failed, subscription group: {} not exist", old);
      variable old is always null , it's useless, so it's better to print groupName

      Attachments

        Issue Links

          Activity

            People

              vongosling Von Gosling
              qianzhenyu QianZhenyu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: