debezium.encode: logical messages (op: m) and extended.headers.enabled are not implemented
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go, json, kafka, postgresql
- Ambito
- data-engineering, stream-processing
Direzione di ricerca
Start at pkg/plugin/processor/builtin/impl/debezium/plan.go, where the op switch handles c, r, u, d but not m; use schema.go and json.go to see how the envelope and JsonConverter are built. For headers, search the processor for where the Debezium envelope is assembled and add the extended.headers.enabled path plus __debezium.context.* fields. Extend json_test.go and compare against goldens in tests/debezium/testdata/golden/<version>/<converter>/; done means both the logical-message path and context headers are covered and match real Debezium output.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
debezium.encode (#3183) shipped the envelope, naming, tombstone and JsonConverter work for the Debezium-compatible output mode. It was written directly rather than taken from #3076, which was opened earlier as "the core of debezium.encode" and is now closed as superseded.
Two things #3076 covered are not on main, and both belong to the v0.23 output mode rather than to the v0.22 groundwork. This issue is the record so they are not lost with the closed PR.
1. Logical messages (op: m)
pkg/plugin/processor/builtin/impl/debezium/plan.go handles c, r, u, d and the primary-key change (delete, tombstone, create). It has no m case. Debezium emits a logical message on <prefix>.message for pg_logical_emit_message, with its own schema and no key. #3076's builder produced it.
Decide, when the output mode lands, whether to support m or to refuse it with a stable code. Refusing silently is not an option: a logical message reaching the processor today falls through the switch, and the behavior on that path needs a test either way.
2. extended.headers.enabled and the __debezium.context.* headers
Nothing in the tree mentions extended.headers or __debezium.context. Debezium 2.6+ can attach connector-context headers to every message, and a consumer configured against a real Debezium connector with that setting on will see them missing from Conduit's output. #3076 added the setting and the headers.
Not worth carrying over
tests/debezium/oracle/— a JavaOracle.javagenerating TSV expectations per Kafka Connect version (2.7.4, 3.7.0).mainhas something better from #3075:tests/debezium/captures real Debezium output into committed goldens (tests/debezium/testdata/golden/<version>/<converter>/), which is whatdebezium.encode'sjson_test.goand thedebezium-goldenworkflow compare against. The TSV oracle was an earlier approach to the same problem.connect/as a separate reusable package.mainimplements the same Connect schema model and JsonConverter port unexported insidepkg/plugin/processor/builtin/impl/debezium(schema.go:schema,field,parameter,descriptor;json.go:writeValue, the Decimal and VariableScaleDecimal encodings, Jackson string escaping, JavaDouble/Float.toString,javaBigIntBytes). If the MySQL output mode needs to share it, extractingmain's version is the move, not resurrecting a parallel one.
Where this lands
The v0.23 roadmap item is "Debezium-compatible output mode for MySQL, using the Postgres diff harness from v0.21 (#3075) against real Debezium on the same database". Both gaps above are Postgres-side and should close before or with that work.
The closed branch is feat/debezium-envelope-json at 6940619 if any of it is wanted verbatim.
- Lingua principale
- Go
- Stelle
- 617
- Fork
- 69
- Merge medio
- 8h 5m
- PR unite (30g)
- 122
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ConduitIO/conduit
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
docs(conduit.io): durable state commits, db.allowUnsyncedCommits, and the new store error codesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ConduitIO/conduit
Issue simili
-
P3 tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
kind/feature needs-triage priority/unprioritized
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NVIDIA/k8s-test-infra#1504 ·
I maintainer di solito rispondono entro 1 giorno
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
wso2/agent-manager#2717 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
open-policy-agent/opa#9685 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
aliyun/elastic-compute-control-cli#191 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno