-
Notifications
You must be signed in to change notification settings - Fork 553
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
rpk/transform: introduce logs command #16923
Conversation
ec477f5
to
778bb82
Compare
632bd49
to
858fca7
Compare
Force push: fixes from manual testing and fixed broker output to be more user friendly |
858fca7
to
58ab00a
Compare
58ab00a
to
5e0af4b
Compare
Force push: Another round of manual testing. Should be good to go now. |
new failures in https://buildkite.com/redpanda/redpanda/builds/45815#018e1a64-7c19-4dd5-a4e8-eb67b3e215ad:
new failures in https://buildkite.com/redpanda/redpanda/builds/45815#018e1a64-7c1f-4e7d-a3c2-0cccc43d6567:
new failures in https://buildkite.com/redpanda/redpanda/builds/45815#018e1a64-7c1c-4ffb-9d6b-90807df1fb35:
new failures in https://buildkite.com/redpanda/redpanda/builds/45833#018e1b23-5c87-4a2a-b94d-739b8ff197cb:
new failures in https://buildkite.com/redpanda/redpanda/builds/45833#018e1b4b-56c1-4197-8d0c-448cce43e921:
new failures in https://buildkite.com/redpanda/redpanda/builds/45880#018e1edd-8c9a-4c73-bdcf-8a28e4b531d2:
new failures in https://buildkite.com/redpanda/redpanda/builds/45880#018e1eee-bcb1-4d46-92ee-e22b8e303806:
new failures in https://buildkite.com/redpanda/redpanda/builds/45906#018e1ff9-078a-4ea7-aa9a-6f91333529d2:
new failures in https://buildkite.com/redpanda/redpanda/builds/45906#018e2020-de1c-4276-9a5b-785fcb7cb20f:
new failures in https://buildkite.com/redpanda/redpanda/builds/45906#018e2020-de19-4cec-8861-37248fcc06e5:
new failures in https://buildkite.com/redpanda/redpanda/builds/45906#018e2328-4fb4-40e8-b028-4f4d09f0d4f5:
new failures in https://buildkite.com/redpanda/redpanda/builds/46062#018e33b7-aac8-4489-af46-b2e2baddfa2f:
new failures in https://buildkite.com/redpanda/redpanda/builds/46135#018e3ae9-3cb6-4547-994f-c7d028a1c73e:
|
5e0af4b
to
2a4e31e
Compare
Force push: fix tests |
2a4e31e
to
51159aa
Compare
Force push: remove some files I didn't mean to add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
@redpanda-data/documentation asking for a review of the help text for the new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core bits lgtm. I'll defer to @r-vasquez for signoff.
(I miss the Gerrit +1
)
self.body = self._rep.get(self.BODY_FIELD, None) | ||
body_object = self._rep.get(self.BODY_FIELD, None) | ||
if isinstance(body_object, dict): | ||
self.body = body_object.get("stringValue", None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fun. I knew I should have tried parsing this into the real protobuf. Oh well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meh yeah I missed this in the reviews too 🤷
for (const iovec_t& vec : iovecs) { | ||
try { | ||
ffi::array<char> data = mem->translate_array<char>( | ||
auto level = fd == 1 ? ss::log_level::info : ss::log_level::warn; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rockwotj - Thanks for sorting this out btw. I spent a few hours staring at it while you were out and couldn't quite visualize where things ought to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
1390b3d
to
e45f27d
Compare
Force push: docs fixes |
e45f27d
to
e8c7f66
Compare
Force push: make logs test more robust now that we produce exactly the correct number of logs (see slack thread) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Offsets are 0 indexed, so the last record in the transform should be n - 1. NOTE: It's still possible for this test to be flaky if all the input partitions end up on the same core, as all of the partitions could produce logs at once, overshooting the log buffer. Maybe that is unlikely enough it will never happen. Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
This was always recording 0 bytes because there was an unrolled batch, which this method doesn't report. It seems cleaner to just count the bytes that are returned from the builder anyways. Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
e8c7f66
to
d03086c
Compare
/backport v23.3.x |
Failed to create a backport PR to v23.3.x branch. I tried:
|
Fixes: https://github.com/redpanda-data/core-internal/issues/1009, https://github.com/redpanda-data/core-internal/issues/1079
Backports Required
Release Notes
Features
rpk transform logs NAME
to view logs for a transform