Skip to main content

Enable shutdown of Karapace for invalid schema records

You can configure the Karapace schema registry to shut down when corrupt schema records are detected in the _schemas topic.

Why enable Karapace to shutdown​

By default, Karapace skips invalid schema records to prevent interruptions. To ensure data consistency, you can enable schema_reader_strict_mode to shut down Karapace when it detects faulty records. This ensures that only valid schemas are processed, preventing data integrity issues.

What to do if Karapace shuts down​

  • Contact Aiven support: If Karapace shuts down due to corrupt schema records, create a support ticket or email Aiven support.

  • Disable strict mode: You can also disable schema_reader_strict_mode to allow Karapace to continue running while skipping faulty records.

Enable Karapace shutdown​

  1. Log in to the Aiven Console, select your project, and choose your Aiven for Apache Kafka® service.

  2. On the Overview page, click Service settings from the sidebar.

  3. Scroll to Advanced configuration and click Configure.

  4. Click Add configuration options.

  5. Find schema_registry_config.schema_reader_strict_mode and set it to Enabled.

  6. Click Save configuration.