Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7007

DistributedUpdateProcessor logs replay status as int instead of boolean

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.10.3
    • Fix Version/s: 5.4, 6.0
    • Component/s: replication (java)
    • Labels:

      Description

      When logging the following line:

      DistributedUpdateProcessor.java
              log.info("Ignoring commit while not ACTIVE - state: " + ulog.getState() + " replay:" + (cmd.getFlags() & UpdateCommand.REPLAY));
      

      We display the value of the replay flag as an int instead of a boolean. This can erroneously lead operators to believe that it is a counter instead of a flag when all they see is the log.

        Attachments

          Activity

            People

            • Assignee:
              cpoerschke Christine Poerschke
              Reporter:
              mdrob Mike Drob
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: