Fixed
Status Update
Comments
yb...@google.com <yb...@google.com>
yb...@google.com <yb...@google.com> #2
This happens when blocking thread interrupted.
Use case: RxJava, When switchMap is upstream, downstream blocking operation will be interrupted.
In older version room, runInTransaction is not interruptible, never throws exception like this.
Description
Version used: `1.0.0-alpha3`, / `1.0.0-alpha8`
Devices/Android versions reproduced on: I can verify the problem in a Unit test
Description:
When we use a Flowable to get an update notification after inserting a new data-base row, works fine.
But when the insertion is done inside another explicit transaction, the Flowable does not get a notification.
- Sample project to trigger the issue.
To illustrate the issue, I've forked the BasicRxJavaSample from android-architecture-components and added 2 test-methods to UserDaoTest.java:
see failing test: testFlowableInTransaction
for more details and formatted code see: