Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TINKERPOP-1832: TraversalHelper.replaceStep sets previousStep to the wrong step #751

Closed
wants to merge 1 commit into from

Conversation

pietermartin
Copy link
Contributor

https://issues.apache.org/jira/browse/TINKERPOP-1832

TraversalHelper.replaceStep needs to first remove the step before adding in the new step. Else it gets its previousStep pointer wrong.

Added TraversalHelperTest.shouldSetPreviousStepToEmptyStep which was the scenario that originally made me aware of the issue.

Ran mvn clean install and tested Sqlg's tests with the fix.

…teps' previousStep incorrectly.

It needs to remove the replaced step before inserting the new step.
@pietermartin
Copy link
Contributor Author

VOTE +1

@spmallette
Copy link
Contributor

This PR is targetted at master (3.3.x) - any reason to not also target tp32 (3.2.x) or is this just a problem on the 3.3.x line?

@pietermartin
Copy link
Contributor Author

I'd have to check but pretty sure its the same on 3.2.x

@dkuppitz
Copy link
Contributor

It is the same in 3.2.x and was actually testing the fix in tp32 when the discussion first came up.

VOTE: +1 (after retargeting)

@pietermartin pietermartin changed the base branch from master to tp32 November 22, 2017 08:13
@pietermartin pietermartin changed the base branch from tp32 to master November 22, 2017 08:14
@pietermartin
Copy link
Contributor Author

Closing to retarget tp32

@pietermartin pietermartin deleted the TINKERPOP-1832 branch November 22, 2017 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants