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

Add Test-case for lazy DS-Component activation deadlock (issue #15) #31

Closed

Conversation

HannesWell
Copy link
Member

This PR was originally created as eclipse-equinox/equinox.framework#61 and is now moved to this repository due to the merge of the equinox.framework and equinox.bundles repository.


Test case to reproduce: #15

The case is currently designed to be very close to scenario that happens to me where m2e is in involved.
Before this is merged it will likely has to be generalized and simplified.

Instead of a CountDownLatch in MavenModelManager.HeavyComponent that is count down in MavenProjectManager.HeavyComponent only a Thread.sleep() could be used or, when being debugged one could place a break-point there.
Using a CountDownLatch just reliably ensures that the test passes falsely due to race-conditions and the test does not take unnecessarily long. But it might influence a solution of this problem badly.

@HannesWell
Copy link
Member Author

I think the new tests should be moved to org.eclipse.equinox.ds.tests, which seems to be a more suitable location.

@HannesWell
Copy link
Member Author

Integrated into #68

@HannesWell HannesWell closed this Jul 16, 2022
@HannesWell HannesWell deleted the deadLockTestCase branch July 16, 2022 14:26
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.

1 participant