libserdes not registering schema to schema registry when the schema is used for multiple topics

Open
#10 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, cpp

Research direction

Reproduce the report by using the same schema as the key for topicA and topicB with Schema Registry configured. Start by examining the local cache behavior keyed by the schema MD5; done means the topicB-key subject is registered even when the schema was already cached from topicA.

Written by the indexing model from the issue text.

Description

Looking to use the same schema as key for 2 Kafka topics, topicA and topicB. I'm using libserdes C++ client library to produce the records with Schema Registry setup.

When I produce for topicA for the first time, I observe that 2 new subjects are registered on Schema Registry as being topicA-key and topicB-value.

Using the same schema as key, after publishing an event onto topicB, topicB-key subject is nowhere to be found on Schema Registry, only topicB-value subject.

After some debug log printing, I see that libserdes checks in its local cache on the MD5 of a schema. If it is found in local cache, it will return the schema immediately and not register it with Schema Registry.

Dominant language
C
Stars
12
Forks
62
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from confluentinc/libserdes

All issues in confluentinc/libserdes

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.