Skip to content

Use existing topic config during stream PUT if topic already exits but is not registered #153

@cstrombe

Description

@cstrombe

Desired Behavior

We need to programmatically register streams via the streams PUT call. This is failing with the error {"code":400,"message":"Error: Input configs={} and actual configs={min.insync.replicas=2} are not same for topic=<stream name>" when we issue a PUT to the endpoint v0/streams/<stream name>

Desired behavior:

  • if no topic exists, create the topic with the supplied config
  • If the topic already exists and is not registered with the stream registry, register the stream with the topic's current config
  • If the topic already exists and is registered with the stream registry, then it's a no-op

Benefits

Please list the benefits of updating the stream-registry project
to have the new behavior. E.g.:

Enables programmatic stream registration for different use cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions