You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "CryoThrust (via GitHub)" <gi...@apache.org> on 2026/09/04 07:14:59 UTC

[PR] [Feature][Connector-Kafka] Support Confluent-framed Avro payloads [seatunnel]

CryoThrust opened a new pull request, #12088:
URL: https://github.com/apache/seatunnel/pull/12088

   ## What is included
   
   - Add opt-in Confluent Avro wire-header stripping to `AvroDeserializationSchema`.
   - Reuse `strip_schema_registry_header`; for Avro it requires `avro_schema` and validates magic byte `0` plus the fixed five-byte header.
   - Keep raw Avro behavior unchanged when the option is disabled.
   - Add framed-payload and malformed-header regression tests.
   - Update English and Chinese Kafka/Avro documentation.
   
   The schema ID remains opaque; this change does not add Schema Registry network calls or dependencies.
   
   Closes #12054
   
   ## Verification
   
   - `mvn -s /Users/yohanes/.m2/settings-public-central.xml -pl seatunnel-formats/seatunnel-format-avro -DskipCheckstyleTests -Dlicense.skip=true -Dspotless.check.skip=true -Dtest=AvroSerializationSchemaTest test`
   - `mvn -s /Users/yohanes/.m2/settings-public-central.xml -pl seatunnel-connectors-v2/connector-kafka -DskipTests -DskipCheckstyleTests -Dlicense.skip=true -Dspotless.check.skip=true compile`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature][Connector-Kafka] Support Confluent-framed Avro payloads [seatunnel]

Posted by "CryoThrust (via GitHub)" <gi...@apache.org>.
CryoThrust commented on PR #12088:
URL: https://github.com/apache/seatunnel/pull/12088#issuecomment-5539064948

   ## What is included
   
   - Add opt-in Confluent Avro wire-header stripping to `AvroDeserializationSchema`.
   - Reuse `strip_schema_registry_header`; for Avro it requires `avro_schema` and validates the magic byte before removing the five-byte wire header.
   - Preserve existing raw Avro behavior when the option is disabled.
   - Add regression coverage for framed and malformed payloads.
   - Update the English and Chinese Kafka/Avro documentation.
   
   The schema ID remains opaque; this change does not add Schema Registry network calls or dependencies.
   
   Closes #12054
   
   ## Verification
   
   - `./mvnw -pl seatunnel-formats/seatunnel-format-avro -Dtest=AvroSerializationSchemaTest test` — 7 tests passed
   - `./mvnw -pl seatunnel-connectors-v2/connector-kafka -DskipTests compile` — passed
   
   Apache CI is running the repository-level checks.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature][Connector-Kafka] Support Confluent-framed Avro payloads [seatunnel]

Posted by "CryoThrust (via GitHub)" <gi...@apache.org>.
CryoThrust commented on PR #12088:
URL: https://github.com/apache/seatunnel/pull/12088#issuecomment-5537126922

   Follow-up in d94cd27d6: preserve the requested raw-Avro fallback when the option is enabled. The decoder first attempts a Confluent five-byte header interpretation for payloads beginning with magic byte 0, then retries the complete raw payload if framed decoding fails. Added regression coverage for malformed input; AvroSerializationSchemaTest passes (7 tests).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature][Connector-Kafka] Support Confluent-framed Avro payloads [seatunnel]

Posted by "CryoThrust (via GitHub)" <gi...@apache.org>.
CryoThrust commented on PR #12088:
URL: https://github.com/apache/seatunnel/pull/12088#issuecomment-5551020710

   The previously reported Build failure has cleared on the current head (`91d0473`); `gh pr checks` now shows Build, labeler, and notify workflow all passing. The remaining blocker is maintainer review.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature][Connector-Kafka] Support Confluent-framed Avro payloads [seatunnel]

Posted by "CryoThrust (via GitHub)" <gi...@apache.org>.
CryoThrust commented on PR #12088:
URL: https://github.com/apache/seatunnel/pull/12088#issuecomment-5550737240

   The failed-job rerun completed with the same isolated result: `doris-connector-it (11)` failed while the JDK 8 Doris job and all Kafka/Avro, unit-test, style, and other integration jobs passed. The PR diff does not touch Doris or the transform/integration test paths, so there is still no code-side failure identified for this change.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Feature][Connector-Kafka] Support Confluent-framed Avro payloads [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo merged PR #12088:
URL: https://github.com/apache/seatunnel/pull/12088


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org