-
-
Notifications
You must be signed in to change notification settings - Fork 665
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
protobuf deserialization warning for string keys #621
Comments
The deserialization works correctly. It's just the warning message that bothers me. |
@xakassi, any idea ? |
Hi, guys! It seems like this strange topic matches the regex here: But actually no rules are configured for it, so the warning appears: Actually we do not have the latest AKHQ version with Protobuf yet in our company. But we are planning to get it really soon. Next week or 2 weeks, I suppose. So I will check it on our real data and our customers configs. I will let you know! |
@solaristhesun So the topic name is actually not "...", but some real topic name "bga-data" (as on the screenshot)? Does this topic name match your regex ("topic1|topic2" is just an example, right, but actual value is different)?
Could you, please, provide full AKHQ config? It would be better to see full and real (as much as it possible) values of the config to figure out what can be wrong. |
Yes, it was an example. I tried to anonymize it in order to not leak any sensitive information :). But anyways, here es the full configuration:
|
I reproduced this bug! Really it is a little bug in my code. I will fix it! PR will be soon :) And yes, it is harmless, just an annoying message on UI. |
@xakassi Thank you very much! |
Hi, @tchiotludo ! |
Fix #621 When configure topic regexes for Protobuf deserialization, topic keys maybe not in Protobuf format, in that case key-message-type can be omitted. The same for value-message-type. But there is a bug in the code, it shows a warning "Protobuf deserialization is configured for topic [%s], but message type is not specified neither for a key, nor for a value.", when message type is configured only for a key or only for a value. It should be show only when both key and value message types are not configured. Co-authored-by: Taisiia Goltseva <[email protected]>
The README file states "If, for example, keys are not in Protobuf format, key-message-type can be omitted, the same for value-message-type.". That is what I did because I am using protobuf deserialization for the values and strings for the keys. Why am I seeing the warning "Protobuf deserialization is configured for topic [...], but message type is not specified neither for a key, nor for a value" on every message?
My configuration looks like this
deserialization:
protobuf:
descriptors-folder: "/app/protobuf_desc"
topics-mapping:
- topic-regex: "topic1|topic2"
descriptor-file: "kafka.desc"
value-message-type: "DataTypeX"
The text was updated successfully, but these errors were encountered: