Qpid
  1. Qpid
  2. QPID-4694

[Java Broker] the JSON config file is not saved after startup until promted by additional change, which can result in unecessary generation of new IDs for objects on each startup

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.23
    • Component/s: Java Broker
    • Labels:
      None

      Description

      The JSON config file is not saved after startup until promted by additional change, which can result in unecessary generation of new IDs for objects on each startup.

      For example, upon the first startup the initia-config within the broker jar is written out to disk and then loaded. This prompts generation of IDs for the objects in the configuration, but does not cause the file to be saved. If the broker is simply restarted the same generation of IDs occurs.

      Similarly, if a user edited the config file and added a new object but did not specify an ID, one would be generated at each restart until they edited the config with the broker running and prompted it to save the current ID for the object.

      The config store file should be immediately saved if any Ids are generated during startup.

        Activity

        Robbie Gemmell created issue -
        Robbie Gemmell made changes -
        Field Original Value New Value
        Assignee Robbie Gemmell [ gemmellr ] Alex Rudyy [ alex.rufous ]
        Alex Rudyy made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Justin Ross made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Alex Rudyy
            Reporter:
            Robbie Gemmell
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development