Skip to content

Cannot stop subscriber #2103

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.

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions