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

admin/transform: 400 for missing topics #17011

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

rockwotj
Copy link
Contributor

When deploying a data transform, the input and output topics must
already exist. Currently the validation catches this error, but the
result is a 500, when it should be a 400.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x

Release Notes

Bug Fixes

  • Return a HTTP 400 error code when deploying a transform to a topic that doesn't exist instead of a 500

When deploying a data transform, the input and output topics must
already exist. Currently the validation catches this error, but the
result is a 500, when it should be a 400.

Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
@rockwotj rockwotj requested a review from pgellert March 12, 2024 04:50
@rockwotj rockwotj self-assigned this Mar 12, 2024
@rockwotj rockwotj added the area/wasm WASM Data Transforms label Mar 12, 2024
@rockwotj rockwotj merged commit 727d62b into redpanda-data:dev Mar 12, 2024
17 checks passed
@rockwotj rockwotj deleted the handle-missing-topic branch March 12, 2024 13:24
@vbotbuildovich
Copy link
Collaborator

/backport v23.3.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda area/wasm WASM Data Transforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants