argouml-tigris-org / argouml

Main project of argouml. Some information in the wiki. Some old releases in releases. (depends on parentpom, testmodels)
246 stars 92 forks source link

Deadlocks when resetting the ProfileFacade #6

Open linustolke opened 4 years ago

linustolke commented 4 years ago

In some of the tests, we have seen the MDR operations ending up in deadlock.

This has been observed in the tests tests/org/argouml/notation/providers/uml/TestCallStateNotationUml.java and tests/org/argouml/notation/providers/uml/TestTransitionNotationUml.java in src/argouml-app.

The problem seen is that the main thread, the tearDown(), holds PrimaryIndexImpl while waiting for StorageImpl while the MDR event dispatcher thread holds StorageImpl waiting for PrimaryIndexImpl.