rpk topic produce returns 0 on error
xxchan opened this issue · comments
Version & Environment
Redpanda version: (use rpk version
):
Version: v24.1.8
Git ref: f7ac182
Build date: 2024-06-14T23:15:03Z
OS/Arch: darwin/arm64
Go version: go1.22.2
Redpanda Cluster
node-0 v23.2.17 - ae9a71b
What went wrong?
❯rpk topic create mytopic
TOPIC STATUS
mytopic OK
❯rpk topic produce mytopic --schema-id=topic
1
unable to build value serializer using TopicNameStrategy for topic "mytopic": unable to get schema with name "mytopic-value" using TopicName strategy: Subject 'mytopic-value' not found.
❯echo $?
0
What should have happened instead?
return any code except 0. I'm using rpk
in some script, and this behavior costed me a while to debug :(
How to reproduce the issue?
Additional information
Please attach any relevant logs, backtraces, or metric charts.
JIRA Link: CORE-4217