Schema Registry Client does not update its cache when a schema version deleted
Closed this issue · 0 comments
nattilabalint commented
When the test
@test
public void testAddAfterDeleteSchemaVersion()
executed 2 times in the same JVM, the 2nd run will fail with
404 schema not found at an assert calling
SchemaVersionInfo actualLatestSchemaVersionInfo = schemaRegistryClient.getLatestSchemaVersionInfo(schemaName);
This is because the test does:
create a schema metadata
add a version to this
delete this version
add the same version again
But at the next run (when the DB was reset)
when it add a version, actually it never goes to the DB because it was found in the cache.