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

AbstractFileConfiguration.getProperty(String key) locking causes thread halt

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.9
    • 2.0
    • File reloading
    • None

    Description

      Every call to getProperty causes a lock (related to the reload functionality). In a near real-time system where we have many concurrent threads this affects heavily on the application TPS.

      Possible solution will be: getProperty only returns current value. Reload when needed occurs in a background thread that updates the in-memory map (perhaps by using CopyOnWrite collections?).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yairogen yair ogen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: