Skip to content

PubSub Lite DataFlow Errors - ManagedChannelImpl was not shutdown properly #548

@GLStephen

Description

@GLStephen

When running PubSubLite as a subscriber in a dataflow job I'm receiving the following error repeatedly.

"*~*~*~ Channel ManagedChannelImpl{logId=845, target=us-east1-pubsublite.googleapis.com:443} was not shutdown properly!!! ~*~*~*
    Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true."

The connection is handled in the Pipeline. Do I need to get a reference to the connection and shut it down somewhere? This feels like it should be managed somewhere lower level in this deployment context.

Environment details

  1. OS type and version: Windows -> Dataflow GCP
  2. Java version: 1.8
  3. Beam 1.28
  4. pubsublite version(s):
<dependency>
      <groupId>com.google.cloud</groupId>
      <artifactId>pubsublite-beam-io</artifactId>
      <version>0.11.1</version>
    </dependency>

Steps to reproduce

  1. Create PubSubLit Subscriber in DataFlow Job

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: pubsubliteIssues related to the googleapis/java-pubsublite 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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions