{"action":"created","issue":{"url":"https://api.github.com/repos/thinkaurelius/titan/issues/1170","labels_url":"https://api.github.com/repos/thinkaurelius/titan/issues/1170/labels{/name}","comments_url":"https://api.github.com/repos/thinkaurelius/titan/issues/1170/comments","events_url":"https://api.github.com/repos/thinkaurelius/titan/issues/1170/events","html_url":"https://github.com/thinkaurelius/titan/pull/1170","id":111086759,"number":1170,"title":"NPE when using repeat step with query.batch=true","user":{"login":"twilmes","id":4722637,"avatar_url":"https://avatars.githubusercontent.com/u/4722637?v=3","gravatar_id":"","url":"https://api.github.com/users/twilmes","html_url":"https://github.com/twilmes","followers_url":"https://api.github.com/users/twilmes/followers","following_url":"https://api.github.com/users/twilmes/following{/other_user}","gists_url":"https://api.github.com/users/twilmes/gists{/gist_id}","starred_url":"https://api.github.com/users/twilmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twilmes/subscriptions","organizations_url":"https://api.github.com/users/twilmes/orgs","repos_url":"https://api.github.com/users/twilmes/repos","events_url":"https://api.github.com/users/twilmes/events{/privacy}","received_events_url":"https://api.github.com/users/twilmes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-13T01:43:18Z","updated_at":"2015-10-13T01:47:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thinkaurelius/titan/pulls/1170","html_url":"https://github.com/thinkaurelius/titan/pull/1170","diff_url":"https://github.com/thinkaurelius/titan/pull/1170.diff","patch_url":"https://github.com/thinkaurelius/titan/pull/1170.patch"},"body":"This PR is for issue #1169. I'm pretty new to the interaction between TP3 & the underlying Titan specific steps but I figured I'd take a crack at it. \r\n\r\nAfter debugging, it appeared that at time of the TitanVertex step's initialization (where the multi query would be traditionally executed if batch==true), the starter vertices were not yet available because of the vertex steps placement nested within the repeat.  I thought about attempting to work my way backwards through the traversal but that seemed problematic.  I instead opted for an additional check in the flatMap to see if the multi query results were really loaded during initialization.  If not, initialization is called again.\r\n\r\nOne additional thing to note, when putting the test together, it appeared that the TitanVertex step nested within the repeat did not have the expected profiling annotations.  I may have made the incorrect assumption, but thought that this may be a separate, unrelated issue so I commented that test out and added a note.  If this is incorrect, please let me know, or I can also enter another issue if there is something else awry with the profile metrics on nested steps."},"comment":{"url":"https://api.github.com/repos/thinkaurelius/titan/issues/comments/147571185","html_url":"https://github.com/thinkaurelius/titan/pull/1170#issuecomment-147571185","issue_url":"https://api.github.com/repos/thinkaurelius/titan/issues/1170","id":147571185,"user":{"login":"titan-cla","id":14061831,"avatar_url":"https://avatars.githubusercontent.com/u/14061831?v=3","gravatar_id":"","url":"https://api.github.com/users/titan-cla","html_url":"https://github.com/titan-cla","followers_url":"https://api.github.com/users/titan-cla/followers","following_url":"https://api.github.com/users/titan-cla/following{/other_user}","gists_url":"https://api.github.com/users/titan-cla/gists{/gist_id}","starred_url":"https://api.github.com/users/titan-cla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titan-cla/subscriptions","organizations_url":"https://api.github.com/users/titan-cla/orgs","repos_url":"https://api.github.com/users/titan-cla/repos","events_url":"https://api.github.com/users/titan-cla/events{/privacy}","received_events_url":"https://api.github.com/users/titan-cla/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T01:47:57Z","updated_at":"2015-10-13T01:47:57Z","body":"You did it @twilmes!\n\nThank you for signing the Contribution License Agreement.\n"}}