Skip to content

Unhandled reactor.core.Exception OverflowException: Queue is full?! #8908

@brisote

Description

@brisote

While I'm playing around with the new reactive features in Spring Boot v2.0.0.BUILD-SNAPSHOT I have noticed that when I multiple time force close the connection to endpoint like this:

    @GetMapping(produces = MediaType.TEXT_EVENT_STREAM_VALUE, value = "/events")
    public Flux<Event> getEvents()
    {
        return Flux.from(new Publisher<Event>() {
            @Override
            public void subscribe(Subscriber<? super Event> subscriber) {
                while (true) {
                    try {
                        new Thread().sleep(1000);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }

                    subscriber.onNext(new Event(1, new Date()));
                }
            }
        });
    }

Spring throws: "reactor.core.Exceptions$BubblingException: reactor.core.Exceptions$OverflowException: Queue is full?!" and after that when I call the endpoint again it freeze. Here I've created a repo https://github.com/georgi-staykov/reactive-demo where you can find example code and video that shows the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions