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

Aperta
#153 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
java, kafka

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Java
Stelle
124
Fork
56
Merge medio
1h 57m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ExpediaGroup/stream-registry

Tutte le issue di ExpediaGroup/stream-registry

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.