Skip to content

Schema registry plugin validate goal fails for new schemas #3583

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

Open
dorianpavetic opened this issue Feb 21, 2025 · 0 comments
Open

Schema registry plugin validate goal fails for new schemas #3583

dorianpavetic opened this issue Feb 21, 2025 · 0 comments

Comments

@dorianpavetic
Copy link

dorianpavetic commented Feb 21, 2025

When having empty schemas in the Schema Registry, or just try to add new schemas and execute io.confluent:kafka-schema-registry-maven-plugin:7.8.0:validate, I get "subject not found exception". Same thing happens for test-compatibility.

Why wouldn't it just return that schema is valid/compatible if it is new? This makes it impossible to use CI/CD without manually pushing schemas to the Schema registry.. But at this point, CI/CD makes no sense as schemas are already there.

[ERROR] Could not parse Avro schema
java.lang.RuntimeException: io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException: Subject 'tenant-id' not found. io.confluent.rest.exceptions.RestNotFoundException: Subject 'tenant-id' not found.
io.confluent.rest.exceptions.RestNotFoundException: Subject 'tenant-id' not found.

This is my config:

<plugin>
                <groupId>io.confluent</groupId>
                <artifactId>kafka-schema-registry-maven-plugin</artifactId>
                <version>${confluent.version}</version>
                <configuration>
                    <schemaRegistryUrls>
                        <param>${schema-registry.url}</param>
                    </schemaRegistryUrls>
                    <normalizeSchemas>true</normalizeSchemas>
                    <subjects>
                        <tenant-id>src/main/resources/avro/model/common/tenant-id.avsc</tenant-id>
                        ..... more
                    </subjects>

                    <references>
                       ....
                    </references>
                </configuration>
            </plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant