Skip to content
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

Regression: rpk topic consume --regex never works #18602

Closed
brasic opened this issue May 21, 2024 · 1 comment · Fixed by #18628
Closed

Regression: rpk topic consume --regex never works #18602

brasic opened this issue May 21, 2024 · 1 comment · Fixed by #18628
Assignees
Labels
area/rpk kind/bug Something isn't working

Comments

@brasic
Copy link

brasic commented May 21, 2024

Version & Environment

Redpanda version: (use rpk version): 23.3.12

What went wrong?

rpk topic consume --regex always fails if any non-literal chars are used. For example, the following command against a broker with at least one topic should return data instead of failing:

$ rpk topic consume --regex '.*'
unable to consume topic ".*": UNKNOWN_TOPIC_OR_PARTITION: This server does not host this topic-partition.

It looks like this regressed in #13330, which validates that topics exist before consuming them, but when --regex is passed the topics are to be interpreted as patterns instead of literal values.

What should have happened instead?

--regex flag should disable the topic existence validation added in #13330

How to reproduce the issue?

  1. Create a topic of any name
  2. rpk topic consume --regex '.*'
  3. Observe UNKNOWN_TOPIC_OR_PARTITION error

JIRA Link: CORE-3047

@brasic brasic added the kind/bug Something isn't working label May 21, 2024
@r-vasquez
Copy link
Contributor

Thanks for bringing this up. We will fix this soon.

r-vasquez added a commit to r-vasquez/redpanda that referenced this issue May 22, 2024
@r-vasquez r-vasquez self-assigned this May 22, 2024
@r-vasquez r-vasquez mentioned this issue May 22, 2024
7 tasks
vbotbuildovich pushed a commit to vbotbuildovich/redpanda that referenced this issue May 22, 2024
vbotbuildovich pushed a commit to vbotbuildovich/redpanda that referenced this issue May 22, 2024
Lazin pushed a commit to Lazin/redpanda that referenced this issue Jun 1, 2024
Lazin pushed a commit to Lazin/redpanda that referenced this issue Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rpk kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants