GitHub user neykov opened a pull request:
https://github.com/apache/incubator-brooklyn/pull/334
Persistence fix for removing and adding same ID catalog item
If a catalog item with the same ID is removed and then added back the delta
persister will first update the stored item and then delete it, regardless of
the initial order of removal-addition. This may result in the catalog items
disappearing from store even though they were just added.
Explicitly remove catalog item with same ID from the removed set if new
object is added.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/neykov/incubator-brooklyn fix/catalog-rebind
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-brooklyn/pull/334.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #334
----
commit 1adc562d77c86abe765ab15dfad412fd2074a8e2
Author: Svetoslav Neykov <[email protected]>
Date: 2014-11-15T16:08:14Z
Persistence fix for removing and adding same ID catalog item
If a catalog item with the same ID is removed and then added back the delta
persister will first update the stored item and then delete it, regardless of
the initial order of removal-addition. This may result in the catalog items
disappearing from store even though they were just added.
Explicitly remove catalog item with same ID from the removed set if new
object is added.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---