redpanda-data / redpanda

Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM!
https://redpanda.com
9.17k stars 561 forks source link

No syntax specified for the proto file Warning #17682

Open alextreichler opened 3 months ago

alextreichler commented 3 months ago

Version & Environment

What went wrong?

I'm producing data with Protobuf serialized keys. Creating the schema fine. Producing data fine. Viewing in Console just fine as well. But every time this producer of mine (using Confluent's Python library) connects to produce more data, I get this in the following warning inside the Redpanda Logs:

redpanda-1 | [libprotobuf WARNING /v/build/v_deps_build/protobuf-prefix/src/protobuf/src/google/protobuf/compiler/parser.cc:646] No syntax specified for the proto file: . Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)

What should have happened instead?

Since everything is working as expected, I would not expect to see this WARNING at all.

How to reproduce the issue?

Example code can be found here which reproduces the warning, https://github.com/voutilad/redpanda-schema-demo/blob/main/produce.py

Additional information

Using the example to reproduce the issue, the schema gets created correctly using the correct protobuf syntax, but it still provides the Warning about no syntax specified.

JIRA Link: CORE-2144

github-actions[bot] commented 4 days ago

This issue hasn't seen activity in 3 months. If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.