Remove SingleCollector_CollectWordRunning#6426
Conversation
It does not seem to serve any purpose (anymore?)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6426 +/- ##
==========================================
- Coverage 78.86% 78.86% -0.01%
==========================================
Files 685 685
Lines 293551 293543 -8
Branches 8672 8672
==========================================
- Hits 231521 231513 -8
+ Misses 60224 60222 -2
- Partials 1806 1808 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
hulpke
left a comment
There was a problem hiding this comment.
This is clearly a safety catch to avoid collection code calling the collector again, which might happen when working on implementing a new collector. Why should it go? (It might not be the best kind of implementation, but that is a different question)
|
@hulpke could you clarify what exactly it would protect against? I understand that it is meant to protect against recursion issues, but I don't understand what issues those would be? There used to be code in the kernel collector that was not re-entrant, because it used a global shared buffer. But this one doesn't do that, as far as I can tell (I may have missed something). The motivation for removing it is that the flag is not cleared when exiting via a break loop, which can lead to confusing errors for the user (see issue #6412). |
|
I can think of two situations. basically both having to do with implementing new collectors: The first is to have the new code call an old collection for verification in a test. The second would be a mixed collection that uses the old collection for a subgroup. |
It does not seem to serve any purpose (anymore?)
Resolves #6412
Though perhaps @hulpke or @ThomasBreuer know / remember what this was about better than me?