Skip to content

Conversation

@ashok-pnt
Copy link

Summary
This PR fixes the schema subject mismatch issue by removing environment prefixes (like development. or staging.) from topic names before performing schema lookup.

Key Changes

  • Updated SchemaRegistrySerde.java to strip environment prefix before schema lookup.
  • Updated TopicsExporter.java to maintain consistent topic name transformation logic.
  • Enhanced SchemaRegistrySerdeTest.java to validate schema retrieval, serialization/deserialization, and environment prefix removal.

Validation
Ran Gradle tests successfully — all unit tests passed, including SchemaRegistrySerdeTest.
Verified Kafka UI can now correctly deserialize schemas for environment-prefixed topics.
Confirmed that schema subjects match as expected after the fix.

Impact
Ensures consistent schema lookup across all environments and prevents NOT FOUND errors during deserialization.

@ashok-pnt ashok-pnt requested review from a team as code owners November 5, 2025 12:35
@kapybro kapybro bot added status/triage Issues pending maintainers triage status/triage/manual Manual triage in progress status/triage/completed Automatic triage completed and removed status/triage Issues pending maintainers triage labels Nov 5, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi ashok-pnt! 👋

Welcome, and thank you for opening your first PR in the repo!

Please wait for triaging by our maintainers.

Please take a look at our contributing guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/triage/completed Automatic triage completed status/triage/manual Manual triage in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant