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

[backport/v1.3] tetra/debug: Clone GetDebugResponse entries #3344

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

tpapagian
Copy link
Member

Backport of #3343

[upstream commit b76687b]

When running command "tetra debug dump processcache", we get sometimes
the following error:

Error: failed to get process dump debug info: rpc error: code = Internal
desc = grpc: error while marshaling: marshaling tetragon.GetDebugResponse:
size mismatch (see golang/protobuf#1609): calculated=1240,
measured=1269

By checking the link provided in the error message, we can see that the
most possible cause of the error is accidental sharing and concurrent mutation
of a Protobuf message or submessage.

To avoid that issue, this patch clones mutable submessages.

We managed to reproduce that in a server with heavy load. This patch
seems to solve that issue.

Signed-off-by: Anastasios Papagiannis <anastasios.papagiannis@isovalent.com>
@tpapagian tpapagian added the release-note/misc This PR makes changes that have no direct user impact. label Jan 28, 2025
@tpapagian tpapagian requested a review from a team as a code owner January 28, 2025 09:48
@tpapagian tpapagian requested review from tixxdz and removed request for a team January 28, 2025 09:48
@tpapagian tpapagian merged commit 85d0761 into v1.3 Jan 28, 2025
37 checks passed
@tpapagian tpapagian deleted the pr/apapag/backport-3343-v1.3 branch January 28, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants