Skip to content

Cannot stop subscriber #2103

Closed
Closed

Description

@pongad

If we create a subscriber using with FixedChannelProvider and FixedExecutorProvider and do this

subscriber.startAsync().awaitRunning();
System.err.println("running");
subscriber.stopAsync().awaitTerminated();
System.err.println("stopped");
for (;;) {
  Thread.sleep(1000);
}

we keep pulling messages forever. Stopping subscriber flushes waits for all messages to finish processing, but it does not stop the polling chain from continuing.

Activity

  1. added
    api: pubsub
    on Jun 1, 2017
  2. self-assigned this
    on Jun 1, 2017
  3. added
    priority: p1
    on Jun 1, 2017
  4. added
    type: bug
    priority: p2
    and removed
    priority: p1
    on Jul 17, 2017
  5. pongad commented on Sep 8, 2017

    @pongad
    ContributorAuthor

    The polling implementation is being removed in favor of streaming, and streaming shouldn't have this problem.

  6. added a commit that references this issue on Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: pubsubpriority: p2type: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions