模式注册表何时删除自动注册的模式?

huangapple go评论47阅读模式
英文:

When does schema registry remove the schemas which are auto registered

问题

当客户端生产者启用了auto.register.schemas = true时,在开发环境中出现了一种情况。这在一段时间内运行良好,但在某个时刻,模式注册表会将其删除(我正在使用托管在Confluent中的Kafka),之后所有的消息都会失败。我追踪到了模式注册表何时会删除客户端生产者自动注册的模式。

模式注册表何时会删除客户端生产者自动注册的模式?

英文:

I have situation in my development environment where my client has auto.register.schemas = true. This works fine for a while, but at some point the schema registry removes it ( i am using kafka hosted in confluent) and all my messages fails which are after that. I tracked it down to when the schema registry gets rid of my auto registered schema.

When do schema registry remove the auto registered schema by a client producer?

答案1

得分: 0

与任何Kafka主题一样,除非模式主题是使用cleanup.policy=delete(或compact,delete)创建的,否则不应该这样做。该主题应该具有紧凑的策略,因此将数据保留永久。

英文:

As with any Kafka topic, it should never do that unless the schemas topic was created with cleanup.policy=delete (or compact,delete). The topic should have compact policy, therefore keep data forever.

huangapple
  • 本文由 发表于 2023年6月13日 10:13:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/76461321.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定