Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5270

[DS] Config race between update and delete

    XMLWordPrintableJSON

Details

    Description

      Thanks to Fabian Lange for reporting this problem and providing logging that shows what is going on.

      The first getConfiguration when the location is not set generates a LocationChanged event. When we get such an event, we get the configuration to see what happened.

      DS: (either from query or initial CM_UPDATED event) calls getConfiguration, setting the bundle location and generating a CM_LOCATION_CHANGED event.
      User: delete configuration, setting the properties to null
      DS: receive CM_LOCATION_CHANGED, call getConfiguration (incidentally recreating the configuration) and get configuration with null properties and a location. We then throw:

      if (configInfo.getProps() == null)

      { throw new IllegalStateException("Existing Configuration with pid " + pid + " has had its properties set to null and location changed. We expected a delete event first."); }

      Attachments

        Issue Links

          Activity

            People

              djencks David Jencks
              djencks David Jencks
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: