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

Make Startables#deepStart always iterate sequentially #2053

Merged
merged 5 commits into from Nov 11, 2019
Merged

Make Startables#deepStart always iterate sequentially #2053

merged 5 commits into from Nov 11, 2019

Conversation

pivovarit
Copy link
Contributor

The Startables#deepStart doesn't sanitize the Stream parameter which makes the method exposed to a bug when receiving a parallelized Stream<Startable instance.

Ideally, I'd replace Stream<Startable> with Set<Startable> but the public API needs to be respected - consider deprecation.

The test is non-deterministic when it comes to exposing a bug.

@bsideup bsideup added this to the next milestone Nov 11, 2019
@bsideup bsideup changed the title Secure Startables#deepStart against improper usage Make Startables#deepStart always iterate sequentially Nov 11, 2019
Copy link
Member

@bsideup bsideup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bsideup bsideup merged commit c027751 into testcontainers:master Nov 11, 2019
@bsideup
Copy link
Member

bsideup commented Nov 11, 2019

@pivovarit nice one, thanks! Merged 👍

@pivovarit pivovarit deleted the secure-deep-start-against-improper-usage branch November 11, 2019 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants