Skip to content

PublisherVerification#required_spec317_mustNotSignalOnErrorWhenPendingAboveLongMaxValue takes a long time for fully synchronous publishers #259

Closed
@ldaley

Description

@ldaley

Hi,

I can't quite determine whether this is a defect in my test, or my interpretation of the spec.

I have an Iterable publisher, that is fully synchronous. With this test, it effectively tries to publish 0..Integer.MAX_VALUE which takes some time.

This won't return until all of the values have been published:

https://github.com/reactive-streams/reactive-streams-jvm/blob/master/tck/src/main/java/org/reactivestreams/tck/PublisherVerification.java#L1057

Solutions I can see:

  1. Use something more reasonable than Integer.MAX_VALUE.
  2. Cancel the subscription when callsCounter == 0

Or of course, my implementation is wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions