Update git submodules
* Update frameworks/support from branch 'androidx-master-dev'
to 06f3710c0adea39cb4a0baef6863777c2fe39fb9
- Merge "Fix race condition in workmanager inspector disposal" into androidx-master-dev
- Fix race condition in workmanager inspector disposal
There were two issues:
1. Testing harness was shutting down primary executor too early,
not giving a chance to completely dispose
2. WorkManagerInspector was simply posting message to go to
"DESTROYED" state => onDispose method could finish before than
this message was executed => primary executor could be
shutdown before than this message was executed =>
livedata observers could have sent some message to
shutdown executor.
It is a minor issue, because production executor silently
drops messages sent to closed executor. However, we don't want
to do that in testing, because lost messages could potentially lead
to bigger issues. In the workmanager case, those lost messages
during disposal phase didn't have much value, but for correctness
now workmanager blocks onDispose until all observers are unregistered.
Fixes: 172833278
Test: WorkInfoTest
Change-Id: I7e5c694b88dc4d6f25a9acd45350832ac906e8b5
Loading
Please sign in to comment