{"action":"opened","issue":{"url":"https://api.github.com/repos/AxonFramework/AxonFramework/issues/315","repository_url":"https://api.github.com/repos/AxonFramework/AxonFramework","labels_url":"https://api.github.com/repos/AxonFramework/AxonFramework/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/AxonFramework/AxonFramework/issues/315/comments","events_url":"https://api.github.com/repos/AxonFramework/AxonFramework/issues/315/events","html_url":"https://github.com/AxonFramework/AxonFramework/issues/315","id":217636440,"number":315,"title":"Reload aggregate after rollback in nested unit of work","user":{"login":"mvdz","id":9332217,"avatar_url":"https://avatars2.githubusercontent.com/u/9332217?v=3","gravatar_id":"","url":"https://api.github.com/users/mvdz","html_url":"https://github.com/mvdz","followers_url":"https://api.github.com/users/mvdz/followers","following_url":"https://api.github.com/users/mvdz/following{/other_user}","gists_url":"https://api.github.com/users/mvdz/gists{/gist_id}","starred_url":"https://api.github.com/users/mvdz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvdz/subscriptions","organizations_url":"https://api.github.com/users/mvdz/orgs","repos_url":"https://api.github.com/users/mvdz/repos","events_url":"https://api.github.com/users/mvdz/events{/privacy}","received_events_url":"https://api.github.com/users/mvdz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-28T17:34:43Z","updated_at":"2017-03-28T17:34:43Z","closed_at":null,"body":"When a nested unit of work is rolled back then all aggregates loaded in that unit of work are removed from the repository. This causes an issue when they are loaded again later in the same root unit of work. Events that have earlier been published in the same root unit of work (but not rolled back) are not taken into account to reload the aggregate. In the code I've linked below this includes the event used to create the aggregate which leads to an AggregateNotFoundException. In other cases an old version of the aggregate would be loaded instead.\r\n\r\nReproducing code (tested with 3.0.2): https://gist.github.com/mvdz/b730baa9b268e39a00e3d840b675b464"}}
{"actor":{"display_login":"mvdz"}}