-
Notifications
You must be signed in to change notification settings - Fork 70
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
Closes #377 - Prevent recursive method hook execution #1262
Closes #377 - Prevent recursive method hook execution #1262
Conversation
dff5303
to
7eb46b3
Compare
Codecov Report
@@ Coverage Diff @@
## master #1262 +/- ##
============================================
- Coverage 83.00% 80.79% -2.21%
- Complexity 1736 2026 +290
============================================
Files 174 204 +30
Lines 5366 6460 +1094
Branches 650 769 +119
============================================
+ Hits 4454 5219 +765
- Misses 675 950 +275
- Partials 237 291 +54
|
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.
Reviewed 3 of 4 files at r1.
Reviewable status: 2 of 4 files reviewed, 1 unresolved discussion (waiting on @heiko-holz and @mariusoe)
inspectit-ocelot-core/src/test/java/rocks/inspectit/ocelot/core/instrumentation/hook/HookManagerTest.java, line 80 at r1 (raw file):
// set recursion gate HookManager.RECURSION_GATE.set(true);
Is it feasible to also write a "real scenario" test case for which the RECURSION_GATE is not set manually but by the "poorly chosen instrumentation"?
As I am too far away from the implementation, I fail to grasp the example given in #377
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.
Reviewed 1 of 1 files at r2.
Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @heiko-holz and @mariusoe)
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.
Reviewable status: 3 of 6 files reviewed, 1 unresolved discussion (waiting on @heiko-holz)
inspectit-ocelot-core/src/test/java/rocks/inspectit/ocelot/core/instrumentation/hook/HookManagerTest.java, line 80 at r1 (raw file):
Previously, heiko-holz (Heiko Holz) wrote…
Is it feasible to also write a "real scenario" test case for which the RECURSION_GATE is not set manually but by the "poorly chosen instrumentation"?
As I am too far away from the implementation, I fail to grasp the example given in #377
I've added a system test as well including an instrumentation configuration to cover this case (where an instrumentation calls an instrumented method within its instrumentation). Maybe it is more clear now.
…InstrumentationTest.java (and updating recursiveInstrumentation.yml)
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.
Reviewed 1 of 4 files at r1, 1 of 2 files at r3, 2 of 2 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @mariusoe)
inspectit-ocelot-core/src/test/java/rocks/inspectit/ocelot/core/instrumentation/hook/HookManagerTest.java, line 80 at r1 (raw file):
Previously, mariusoe (Marius Oehler) wrote…
I've added a system test as well including an instrumentation configuration to cover this case (where an instrumentation calls an instrumented method within its instrumentation). Maybe it is more clear now.
Yes, the tests phenomenally explain the issue :)
closes #377
This change is