Skip to content

Ccompat compatibility check returns 40402 for unknown latest schema #6089

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

Closed
GFriedrich opened this issue Mar 28, 2025 · 3 comments
Closed

Comments

@GFriedrich
Copy link

Description

Registry Version: 3.0.6
Persistence type: in-memory

When checking the compatibility for a new/unknown schema on the latest version, the API returns a 40402 error for an "unknown" version. But actually the Confluent registry returns a successful compatibility check, as the check for an unknown latest schema is explicitly excluded:
https://github.com/confluentinc/schema-registry/blob/99303198f5776bf1f44947dcceea8a9f582655eb/core/src/main/java/io/confluent/kafka/schemaregistry/rest/resources/CompatibilityResource.java#L144

Environment

Local docker setup

Steps to Reproduce

  1. Create a fresh Apicurio installation
  2. Call the compatibility check for an unknown latest schema (e.g. at /compatibility/subjects/something/versions/latest)
  3. See that the result is different.

Expected vs Actual Behaviour

The compatibility check for an unknown latest schema should just succeed. But currently it fails with a 40402 error.

@EricWittmann EricWittmann self-assigned this Apr 7, 2025
@EricWittmann EricWittmann moved this to Backlog in Registry 3.0 Apr 7, 2025
@EricWittmann EricWittmann added this to the 3.0.7 milestone Apr 7, 2025
@EricWittmann EricWittmann moved this from Backlog to In Progress in Registry 3.0 Apr 7, 2025
EricWittmann added a commit that referenced this issue Apr 8, 2025
EricWittmann added a commit that referenced this issue Apr 9, 2025
* Fix for #6089

* Fix the ccompat global compatibility integration test
@github-project-automation github-project-automation bot moved this from In Progress to Done in Registry 3.0 Apr 9, 2025
@EricWittmann
Copy link
Member

This has been fixed. I mean, this is really weird behavior on the part of the Confluent Schema Registry. But there's no doubt you're right about how it works and that the behavior is intentional. 🤯

Thanks for the report.

@GFriedrich
Copy link
Author

Yea, not saying that this is a great behavior. Unfortunately I found though that certain integrations rely on this. 😒
So thanks for aligning this. Much appreciated. 🙏

@EricWittmann
Copy link
Member

Sure thing. We do want the behavior to be as close as possible, for obvious interoperability reasons. So if you find other issues like this for sure let us know! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants