Skip to content

Commit

Permalink
rxjava2-pool - resolve MemberSingle race conditions - move observers …
Browse files Browse the repository at this point in the history
…modification to the drain loop (#148)

Concurrency unit testing revealed occasional failures that were due to race conditions with modification of observers outside the MemberSingle.drain loop. To resolve this all modification actions to the observers happen via queues that are polled in the drain loop.

With the simplifications and extra tests, coverage has increased a bit. Unlikely to put in the hard tedious yards to knock off the rest.

This is a fix backported from https://github.com/davidmoten/rxjava3-pool.
  • Loading branch information
davidmoten committed Aug 28, 2022
1 parent 67fddf6 commit 6b4b74b
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 160 deletions.

0 comments on commit 6b4b74b

Please sign in to comment.