Use existing topic config during stream PUT if topic already exits but is not registered
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
- Domain
- backend-api-design, stream-processing
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
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ExpediaGroup/stream-registry
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
ExpediaGroup/stream-registry#296 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 36/100
ExpediaGroup/stream-registry#274 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 25/100
ExpediaGroup/stream-registry#252 · 1 comment ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
ExpediaGroup/stream-registry#235 · 1 comment ·
-
Provide atomic APIOpenenhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
ExpediaGroup/stream-registry#225 · 1 comment ·
All issues in ExpediaGroup/stream-registry
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
avaje/avaje-metrics#142 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RamazanKara/nightjar#299 · 4 comments ·
-
Support emergency=access_point (POI type and rendering)Possibly taken @julenepj claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
osmandapp/OsmAnd#27424 · 1 comment ·
Maintainers usually reply within 1 day
-
Link not working in the feedback concerning String.format() in exercise 'Tim from Marketing'Possibly taken @LaibaMunir016 claimed this 1 day ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
exercism/java-analyzer#379 · 1 comment ·
-
TasksRunnerService.decode() should treat an empty lambdaBody as absentPossibly taken @gky051224 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
redisson/redisson#7477 · 1 comment ·
Maintainers usually reply within 2 days