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

wasm/wasi: properly return number of written bytes #17186

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

rockwotj
Copy link
Contributor

When simplifying updating the wasi logging code, we missed setting the number of written bytes.
Fix that so that write doesn't continue to try to write in a loop.

I will followup with some tests here, but wanted to get this out.

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

  • Fix a bug where logging in a transform could cause the transform to not make progress.

Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
@rockwotj rockwotj requested a review from oleiman March 19, 2024 17:45
@github-actions github-actions bot added area/redpanda area/wasm WASM Data Transforms labels Mar 19, 2024
Copy link
Member

@oleiman oleiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. presumably one of the deleted tests would have caught this?

@rockwotj
Copy link
Contributor Author

Yes, I am going to introduce a test that prints things in wasm_transform_test.cc

@rockwotj rockwotj self-assigned this Mar 19, 2024
@vbotbuildovich
Copy link
Collaborator

vbotbuildovich commented Mar 19, 2024

@rockwotj rockwotj merged commit bd27dce into redpanda-data:dev Mar 19, 2024
17 checks passed
@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