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

Lookup subject's schema metadata/version/etc. on different independent schema-registry hosts #2868

Open
oleggalimov opened this issue Nov 28, 2023 · 0 comments

Comments

@oleggalimov
Copy link

Hi, everyone)
I have a few different independent schema registry service, e.g. http://registryA:8081, http://registryB:8081, http://registryC:8081.
My subject is available on host B, e.g. on this address: http://registryB:8081/subjects/org.home.MySubject.

I want to check backward compatibility for my subject, and for this purpose I'm using kafka-schema-registry-client (7.4.0).
And this check is false-positive due to this point: RestService.java#L414.
That's because when plugin starts checking - it sends via RestService request in cycle on every host (so first request will be send to http://registryA:8081/subjects/org.home.MySubject.). If on the first try server responds with 404, it's failed with RestClientException, but it's not counted as try, because of different type of error. But if it will retry on the next server, it will get a response with metadata, so it's not correct in my case.

Is this correct behaviour? Can you change it (so service will search subject on every host), or add such functionality?

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