-
Notifications
You must be signed in to change notification settings - Fork 67
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
Adds setting to enable/disable Thread Contention Monitoring #171
Conversation
Codecov Report
@@ Coverage Diff @@
## main #171 +/- ##
============================================
+ Coverage 71.61% 71.77% +0.16%
- Complexity 355 367 +12
============================================
Files 44 44
Lines 2459 2519 +60
Branches 160 169 +9
============================================
+ Hits 1761 1808 +47
- Misses 591 598 +7
- Partials 107 113 +6
Continue to review full report at Codecov.
|
try { | ||
threadContentionMonitoringEnabledFromConf = readBooleanFromFile(filePath); | ||
} catch (NoSuchFileException e) { | ||
LOG.debug("Error reading Performance Analyzer state from Conf file", e); |
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.
Error reading thread contention monitoring state
?
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.
@eirsep nit: I think this change was missed in the revision.
if (shouldEnable | ||
&& !performanceAnalyzerController.isPerformanceAnalyzerEnabled()) { | ||
return getChannelConsumerWithError( | ||
"Error: PA not enabled. Enable PA before turning Batch Metrics on"); |
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.
nit: "Enable PA before turning thread contention monitoring on"
@@ -31,7 +31,7 @@ public void setup() { | |||
|
|||
@Test | |||
public void disabledClusterStateTest() { | |||
setControllerValues(DISABLED_STATE, DISABLED_STATE, DISABLED_STATE, DISABLED_STATE); | |||
setControllerValues(DISABLED_STATE, DISABLED_STATE, DISABLED_STATE, DISABLED_STATE,DISABLED_STATE ); |
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.
nit: space before DISABLED_STATE
.
I see a couple of formatting issues. Can we run ./gradlew spotlessApply
Signed-off-by: Surya Sashank Nistala <[email protected]>
Signed-off-by: Surya Sashank Nistala <[email protected]>
Signed-off-by: Surya Sashank Nistala [email protected]
Is your feature request related to a problem? Please provide an existing Issue # , or describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you are proposing
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.