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

Open
#153 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
java, kafka

Research direction

Start by tracing the v0/streams/<stream name> PUT handler and the topic configuration comparison that produces the reported error. Check how stream registration records topic configuration and how existing topics are inspected. Done means the three listed cases behave as specified; the issue names no source files or tests, so locate the relevant coverage from that handler.

Written by the indexing model from the issue text.

Description

enhancement

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.

Dominant language
Java
Stars
124
Forks
56
Avg merge
1h 57m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ExpediaGroup/stream-registry

All issues in ExpediaGroup/stream-registry

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.