Skip to content

Handle disabled schema versions gracefully for Apicurio registry#2669

Open
vintech018 wants to merge 1 commit intotchiotludo:devfrom
vintech018:fix-apicurio-disabled-schema-1198
Open

Handle disabled schema versions gracefully for Apicurio registry#2669
vintech018 wants to merge 1 commit intotchiotludo:devfrom
vintech018:fix-apicurio-disabled-schema-1198

Conversation

@vintech018
Copy link

Fixes #1198

When using Apicurio Schema Registry, requesting the latest schema version fails if that version is disabled.
This PR adds graceful handling by falling back to the last available enabled schema version instead of throwing an exception or blocking the UI.

return schemaRegistryType;
}

private boolean isApicurioRegistry(String clusterId) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer adding a new type in the SchemaRegistryType enum that people set in the schema registry config

https://github.com/tchiotludo/akhq/blob/dev/src/main/java/org/akhq/configs/SchemaRegistryType.java


// Try to resolve a usable schema version by walking all known versions from
// newest to oldest.
List<Integer> versions = registryRestClient.getAllVersions(subject);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you extract this logic in a separate getApicurioLatestVersionAvailable or something like this ?

@github-project-automation github-project-automation bot moved this from Backlog to In progress in Backlog Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

Apicurio registry : No version '2' found for artifact with ID 'com.company.movie' in group 'null'.; error code: 40402

2 participants