SingletonServiceProvider fails to shutdown cleanly
Description
This was discovered through MDSAL-843, which makes the shutdown logic wait for completeness.
Our closing of serviceEntityListenerReg at the start of shutdown leads to a failure to notice service groups' entity transition if a group gets destroyed before close() and its entity is not released by the time close() runes – as happens during container shutdown.
This was discovered through MDSAL-843, which makes the shutdown logic wait for completeness.
Our closing of serviceEntityListenerReg at the start of shutdown leads to a failure to notice service groups' entity transition if a group gets destroyed before close() and its entity is not released by the time close() runes – as happens during container shutdown.