Skip to content

KAFKA-18967: Add schema checker evolution tests - #22946

Open
lh0156 wants to merge 1 commit into
apache:trunkfrom
lh0156:agent/KAFKA-18967-schema-checker-tests
Open

KAFKA-18967: Add schema checker evolution tests#22946
lh0156 wants to merge 1 commit into
apache:trunkfrom
lh0156:agent/KAFKA-18967-schema-checker-tests

Conversation

@lh0156

@lh0156 lh0156 commented Jul 26, 2026

Copy link
Copy Markdown

Summary

  • Add schema evolution coverage using distinct parent and child specifications.
  • Cover common-struct evolution through the MetadataSchemaCheckerTool entry point.
  • Reject a field that is present in both message versions but missing from the child instead of silently accepting it.

Motivation

KAFKA-18967 asks for tests that exercise the metadata schema checker beyond comparing a schema with itself. The new cases cover the field-pair iteration and per-message struct registries involved in the KAFKA-18955 fixes. While adding the coverage, the tests exposed a remaining false positive where FieldSpecPairIterator dropped an unmatched field after avoiding the previous infinite loop.

Validation

  • ./gradlew :generator:test --no-build-cache --console=plain

@github-actions github-actions Bot added triage PRs from the community generator RPC and Record code generator small Small PRs labels Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

generator RPC and Record code generator small Small PRs triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant