observability | registered schema count != max(schemaId) #3572
Unanswered
Nicolas (nhomble)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
Before reading into the investigation so far, my question is: is the registered schema count metric the right metric monitor the total number of schemas served?
Before digging into the code, I was expecting the value of this metric to equal the maximum assigned
schemaId, but in practice I see the metric value is higher than the maxschemaIdI can query against SR. (To query, I do/schemas/ids/:schemaId).The behavior that I am seeing is it tracks the number of schema records in the
_schemastopic but if a schema was soft deleted, then the registered value still increments.What seems like a bug is that the records in
_schemasfor the same subject might have multiple records for the same id (this seems possible when the actual schema value is the same across subjects).To add to the confusion, when the topic is compacted the metric can also go down which begs the question why the registered count went up in the first place.
Beta Was this translation helpful? Give feedback.
All reactions