Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema Retrieval Failure Causes Validation Error in Zilla #1391

Closed
ankitk-me opened this issue Jan 31, 2025 · 0 comments · Fixed by #1390
Closed

Schema Retrieval Failure Causes Validation Error in Zilla #1391

ankitk-me opened this issue Jan 31, 2025 · 0 comments · Fixed by #1390
Assignees
Labels
bug Something isn't working

Comments

@ankitk-me
Copy link
Contributor

Describe the bug
Encountered validation failure for a valid message, as zilla is unable to retrieve required Schema from configured Registry.

To Reproduce
Steps to reproduce the behavior:

  1. Go to http.kafka.karapace example
  2. Start the using ./setup.sh
  3. Manually register a Schema with schema ID that's more than 3 digit.
  4. Trigger a HTTP Request with valid payload.
  5. Mentioned error can be observed in zilla log:
example:my_catalog [31/Jan/2025:07:20:05 +0000] CATALOG_KARAPACE_SCHEMA_REGISTRY_UNRETRIEVABLE_SCHEMA_ID Unable to fetch schema id 100011.

Expected behavior
Validation should work as expected.

Screenshots
Image

Additional context
Root Cause:
MessageFormat.format() applies locale-specific number formatting, inserting a thousands separator (comma in some locales) for numbers larger than 999. This leads to incorrect schema ID formatting and retrieval failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant