Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-5806

Updates on strings.properties are not propagated when using the WebUI on a different server



    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.10.9, 1.11.90
    • Fix Version/s: 1.10.10, 1.11.91
    • Component/s: Web UI - General
    • Labels:
    • Environment:
      Have two OpenNMS servers: one for the WebUI only and other for the rest of services.


      When the collector server updates a strings.properties file, those updates are not being propagated to the WebUI server when going to the Resource Graphs from the node's page.

      I believe that the reason is because there are two different instances of ResourceTypeUtils running on different JVMs, and of course, they are using different caches, and they are not being synchronized.

      In order to avoid increase the load and/or decrease the performance of the cache of ResourceTypeUtils, one solution might be create a special variable on opennms.properties in order to instruct ResourceTypeUtils to behave differently when OpenNMS is running only as a WebUI server.

      This change is basically going to verify the lastModifyTime of the strings.properties files in order to know if the file has changed when a class is requesting a value of a specific property through ResourceTypeUtils.




            • Assignee:
              agalue Alejandro Galue
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: