Should there be any guarantees on the ordering of service property updates
across methods?

For example, say I have an activate method that simply returns the current
service properties and a bind method that adds "active=true" to the current
properties and returns the updated properties. Both methods are
synchronized.

Let's say activate() is invoked first and exits. Before Felix updates the
service properties, another thread calls the bind method, and Felix updates
the service properties to contain "active=true". Then the first thread
updates the service properties to the set returned from the activate()
method, thus blowing away the changes from the bind method.

Is this a bug? Or should we not be relying on the property updates from the
first method being called taking effect before the second method's updates?

Reply via email to