Skip to content

Initialization [stream create for binding from 3rd party bean] attempted repeatedly even when autoCreateStream is false #3139

@bucketsize

Description

@bucketsize

Problem
We are using LogNet/grpc-spring-boot-starter, which is defining the grpcInternalConfigurator Consumer along with spring-cloud-stream.

We are using spring-cloud-stream for creating binding for use with StreamBridge 1. And do not have any functions.

In the absense of spring.cloud.function.definition= property, the consumer defined by lognet is picked up and default binding is created, and repeatedly tries to bind it to while trying to create stream [grpcInternalConfigurator-in-0], while spring.cloud.stream.kinesis.binder.autoCreateStream=false.

This causes an very verbose error message few times every second, which is inundating out cloudwatch log stream, adding to cost.

org.springframework.cloud.stream.provisioning.ProvisioningException: The stream [grpcInternalConfigurator-in-0] was not found and auto creation is disabled.; nested exception is com.amazonaws.services.kinesis.model.ResourceNotFoundException

Solution

  • Stream binding (autoconfiguration) on autoscan of beans be limited only at startup.

Alternative considered
None that is acceptable:

  • create a stream [grpcInternalConfigurator-in-0]
  • define dummy supplier functions and add a stream binding for it.

Additional context
NA

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