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

Reloading may corrupt the configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1
    • 2.0
    • File reloading
    • None
    • 36652

    Description

      Current reloading process clears current properties and load updated values from
      resource reader. If an IO error occurs (or invalid format), the configuration
      gets corrupted and the application becomes unstable.

      It may be better for hot-reload to put loaded values into a temporary Properties
      and replace previous values only when reloading is successful.

      It may also allow to use a 'currentlty-reloading' flag in the synchronized
      'reload' block to avoid blocking threads during a reload (they could access
      safelly the 'old' properties until reload is finished)

      Attachments

        1. commons-configuration-1.5_patch_CONFIGURATION-136.jar
          273 kB
          Laurent Michelet
        2. commons-configuration-1.8_patch_CONFIGURATION-136.jar
          322 kB
          Laurent Michelet
        3. patch.txt
          3 kB
          Laurent Michelet

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ndeloof nicolas de loof
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: