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

fix(instrumentation-redis-4): multi.exec patch should only throw error once #1717

Closed
wants to merge 2 commits into from

Conversation

FredrikAugust
Copy link

This prevents undefined behaviour as it before this would throw two errors where the second one was seemingly impossible to catch.

I'm unsure if this is the optimal approach, but it appears to function and I can't see that it would/has broken any existing functionality.

Which problem is this PR solving?

Fixes #1708

Short description of the changes

  • Add a no-op catch branch to the return value of the exec patch to prevent double errors

…r once

this prevents undefined behaviour as it  before this would throw two errors where the second one was seemingly impossible to catch
@FredrikAugust FredrikAugust requested a review from a team October 5, 2023 08:28
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 5, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: FredrikAugust / name: Fredrik A. Madsen-Malmo (a7a9941, ebee69f)

@pichlermarc pichlermarc added bug Something isn't working priority:p1 Bugs which cause problems in end-user applications such as crashes, data inconsistencies pkg:instrumentation-redis-4 labels Oct 11, 2023
@FredrikAugust
Copy link
Author

@trentm I'll close this as your PR appears to have a better fix.

@FredrikAugust FredrikAugust deleted the main branch October 12, 2023 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg:instrumentation-redis-4 priority:p1 Bugs which cause problems in end-user applications such as crashes, data inconsistencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redis 4.x.x instrumentation causes application to crash when watched keys change as errors are thrown twice
3 participants