Github user GERey commented on a diff in the pull request: https://github.com/apache/incubator-usergrid/pull/256#discussion_r31176723 --- Diff: stack/core/src/main/java/org/apache/usergrid/corepersistence/asyncevents/EventBuilderImpl.java --- @@ -125,12 +128,30 @@ public EntityDeleteResults queueEntityDelete( final ApplicationScope application final GraphManager gm = graphManagerFactory.createEdgeManager( applicationScope ); + //needs get versions here. + + + //TODO: change this to be an observable + //so we get these versions and loop through them until we find the MvccLogEntry that is marked as delete. + //TODO: evauluate this to possibly be an observable to pass to the nextmethod. + MvccLogEntry mostRecentlyMarked = ecm.getVersions( entityId ).toBlocking() + .firstOrDefault( null, --- End diff -- Should be combined with the observable below. There isn't any reasons we should go through entity versions twice.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---