| Summary: | Notification Merge Problem | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Pascal Lehmann <pascal.lehmann> | ||||||
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> | ||||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | cyril.jaquier, erwin | ||||||
| Version: | 4.0 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Pascal Lehmann
Guys, let's discuss this on Thursday... Created attachment 173177 [details]
proposed patch
Here is a patch removing the call to merge in CDODeltaNotificationImpl.
1) The number of lines that you added/changed is smaller than 250.
confirmed
2) You are the only author of these changed lines.
confirmed
3) You apply the EPL to these changed lines.
confirmed
Created attachment 173305 [details]
Patch+Test - for future reference
We agree that this issue could/should be fixed in EMF. Until this eventually happens we are working around it in CDO. Committed to HEAD If this bug is to be fixed in EMF, I propose that the merge process starts at the tail of the notification chain instead of the head, and works its way to the head until a notification for the same feature and notifier is found. If the merge can not be done, I think the merge should be aborted and the notification simply added at the end of the chain. In the given example when the [REMOVE 1] Notification is added to the chain, the merge process would start merging at the [ADD 0] Notification and stop right there, adding the Notification simply to the end of the chain instead trying to merge it to the [REMOVE 0] Notification. I can try to attach a patch proposal next week. Available in R20110608-1407 |