Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.3 Observable#concatMapEager queue size issue #5608

Closed
Aschraf opened this issue Sep 18, 2017 · 2 comments
Closed

2.1.3 Observable#concatMapEager queue size issue #5608

Aschraf opened this issue Sep 18, 2017 · 2 comments
Milestone

Comments

@Aschraf
Copy link

Aschraf commented Sep 18, 2017

Hello,

I've got some issues with ConcatMapEager prefetch value.

It seems that concatMapEager stops before the end of the Observable.

Here is a small example showing the issue :

Observable.range(1, 100000)
        .buffer(10)
        .concatMapEager(value -> Observable.just(value)
                .subscribeOn(Schedulers.io())
                .doOnNext(it -> Thread.sleep(ThreadLocalRandom.current().nextLong(10, 100))),
            6, 4)
        .blockingSubscribe(it -> System.out.println("Received : " + it));

This small code is supposed to write list of ints till 100000. It stops before finishing.

The code doesn't work for the default ConcatMapEager function either (prefetch = 128)

@Aschraf Aschraf changed the title 2.1.3 Observable#concatMapEager prefetch 2.1.3 Observable#concatMapEager queue size issue Sep 18, 2017
@akarnokd akarnokd added the 2.x label Sep 18, 2017
@akarnokd akarnokd added this to the 2.2 milestone Sep 18, 2017
@akarnokd akarnokd added the Bug label Sep 18, 2017
@akarnokd
Copy link
Member

Thanks for reporting. Fixed in #5609.

@akarnokd
Copy link
Member

Closing via #5609.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants