Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-382

Duplicate comments are created in Property file when using setReloadingStrategy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • None
    • 1.7
    • File reloading
    • None
    • all platforms

    Description

      Whenever we set a property value in a .properties file, the comments are created twice. For example, the following is the content of the property file initially.

      1. This is comment.
        PropName = PropValue1

      When we change the property value, the comment line is updated twice.

      1. This is comment.
      1. This is comment.
        PropName = PropValue2

      This issue is seen only when we use setReloadingStrategy() method to notify the property change event to another running process.

      We are using the following code to notify the process which uses this property.

      propConf.setReloadingStrategy(new FileChangedReloadingStrategy());

      If we remove the above code, we do not see this issue. But if we do not use this method, the process which uses this property doesnt get this new value.

      Attachments

        Activity

          People

            Unassigned Unassigned
            anjugaselvan Anjugaselvan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: