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

Trampoline chained DBIOActions #1703

Merged
merged 1 commit into from
Mar 2, 2018
Merged

Conversation

derekjw
Copy link
Contributor

@derekjw derekjw commented Mar 10, 2017

Fix for #1700

Previous fix #1701 did not work in the case of other actions being interwoven with the flatMap actions. A more general solution uses a trampoline for calls to runInContext, using DBIO.sameThreadExecutionContext.

@cvogt
Copy link
Member

cvogt commented Mar 10, 2017

@szeiger I recommend reading the diff ignoring whitespace like this: https://github.com/slick/slick/pull/1703/files?w=1

@derekjw
Copy link
Contributor Author

derekjw commented Mar 11, 2017

I made an update to this PR to only trampoline when recursion gets high. That should remove any worries about performance.

@derekjw derekjw force-pushed the stack-safe-actions branch 2 times, most recently from e1e33bd to 7ae5f53 Compare March 11, 2017 08:09
@hvesalai hvesalai modified the milestones: Next fix release, Future fix release, 3.2.2 Feb 28, 2018
@hvesalai
Copy link
Member

hvesalai commented Mar 1, 2018

@szeiger Did you have time to check this?

@hvesalai
Copy link
Member

hvesalai commented Mar 2, 2018

@derekjw can you rebase this on current master

@derekjw
Copy link
Contributor Author

derekjw commented Mar 2, 2018

@hvesalai sure can, I should be able to get that done this evening

@derekjw
Copy link
Contributor Author

derekjw commented Mar 2, 2018

@hvesalai Rebased onto current master, travis build failed though (I ran tests multiple times locally and can't get a failure). Looks like travis is giving it another try now

@hvesalai
Copy link
Member

hvesalai commented Mar 2, 2018

Yes, I'm seeing that problem sporadically. Not related to your PR

@hvesalai
Copy link
Member

hvesalai commented Mar 2, 2018

LGTM

@hvesalai hvesalai merged commit d2b458e into slick:master Mar 2, 2018
@derekjw
Copy link
Contributor Author

derekjw commented Mar 2, 2018

@hvesalai thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants