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

[v23.3.x] CORE-5083 schema_registry: last subject deletes schema #21258

Merged

Commits on Jul 5, 2024

  1. schema_registry: subject_versions_has_any_of inc_del

    Add support to `store::subject_versions_has_any_of` for including
    deleted subject versions.
    
    (cherry picked from commit 1edb81a)
    pgellert authored and vbotbuildovich committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    1ac5765 View commit details
    Browse the repository at this point in the history
  2. schema_registry: last subject deletes schema

    When the last subject version corresponding to a schema is deleted,
    Schema Registry should also remove the schema.
    
    On the topic, the schema is already considered deleted when the last
    subject version is deleted, and compaction takes care of removing it.
    However, without this change, compaction needs to happen and then a node
    restart needs to happen before the schema is removed from memory. This
    is not ideal for use cases where schemas are frequently created and
    deleted (eg. Serverless), so instead we can remove the schema from
    memory when its last subject version is deleted.
    
    (cherry picked from commit d85de7b)
    pgellert authored and vbotbuildovich committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    1756dbe View commit details
    Browse the repository at this point in the history