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

If you miss SCHEMA_REGISTRY_SCHEMA_REGISTRY_GROUP_ID in the image configuration you get into big problems #3127

Open
akuleshov7 opened this issue May 15, 2024 · 1 comment

Comments

@akuleshov7
Copy link

akuleshov7 commented May 15, 2024

In the Schema Registry image configuration, there's a special option called SCHEMA_REGISTRY_SCHEMA_REGISTRY_GROUP_ID, which sets the Consumer group ID for the Schema Registry in most images.

If you have multiple schema registry instances and forget to set this option, you can encounter significant race condition issues. This is a common problem many people face, as discussed here: https://stackoverflow.com/questions/58563035/multiple-kafka-schema-registry-against-same-cluster

When running a Schema Registry in a multi-node setup, it’s important to configure certain properties to ensure proper communication and coordination between nodes. The SCHEMA_REGISTRY_SCHEMA_REGISTRY_GROUP_ID environment variable is used to set the Kafka Consumer Group ID for the Schema Registry. In a multi-node setup, each instance of Schema Registry should have a unique Consumer Group ID to ensure that they don’t interfere with each other.

Can we make this variable mandatory? Several of my teammates nearly lost their sanity after spending days troubleshooting this silent, flaky behavior.

I suppose it is somewhere near that code: public static final String SCHEMAREGISTRY_GROUP_ID_CONFIG = "schema.registry.group.id";

@akuleshov7
Copy link
Author

WDYT? @rayokota

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