Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1991

Optimize the reconfig judgment logic in the ReconfigurationBase class.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.1.0
    • common
    • None

    Description

      Change the judgment logic:
      It is necessary to determine whether the effective is null, rather than newValue.

      Because the parameter of the properties.set method is effective.

      final String effective = reconfigureProperty(property, newValue);
      LOG.info("{}: changed property {} to {} (effective {})", name, property, newValue, effective);
      if (newValue != null) {
        properties.set(property, effective);
      } else {
        properties.unset(property);
      } 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              huangzhaobo99 Zhaobo Huang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m