Skip to content

gauging locks.#14

Merged
mihxil merged 3 commits intomasterfrom
feature/gauge_locks
May 21, 2021
Merged

gauging locks.#14
mihxil merged 3 commits intomasterfrom
feature/gauge_locks

Conversation

@mihxil
Copy link
Copy Markdown
Collaborator

@mihxil mihxil commented May 21, 2021

No description provided.

@codecov
Copy link
Copy Markdown

codecov bot commented May 21, 2021

Codecov Report

Merging #14 (e00be9b) into master (49922c8) will decrease coverage by 4.82%.
The diff coverage is 60.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #14      +/-   ##
============================================
- Coverage     44.97%   40.14%   -4.83%     
+ Complexity     1400     1270     -130     
============================================
  Files           273      273              
  Lines          9613     9680      +67     
  Branches       1121     1127       +6     
============================================
- Hits           4323     3886     -437     
- Misses         4860     5442     +582     
+ Partials        430      352      -78     
Impacted Files Coverage Δ Complexity Δ
...va/nl/vpro/monitoring/config/MonitoringConfig.java 51.21% <0.00%> (-22.47%) 24.00 <0.00> (ø)
...l/vpro/monitoring/config/MonitoringProperties.java 100.00% <ø> (ø) 1.00 <0.00> (ø)
...rc/main/java/nl/vpro/util/locker/ObjectLocker.java 90.08% <85.00%> (-1.51%) 34.00 <1.00> (+1.00) ⬇️
...in/java/nl/vpro/util/locker/ObjectLockerAdmin.java 73.68% <93.33%> (+21.96%) 13.00 <9.00> (+8.00)
...lasticsearch/highlevel/HighLevelClientFactory.java 0.00% <0.00%> (-85.72%) 0.00% <0.00%> (-7.00%)
...earch/highlevel/ExtendedElasticSearchIterator.java 0.00% <0.00%> (-82.36%) 0.00% <0.00%> (-4.00%)
...arch/highlevel/HighLevelElasticSearchIterator.java 0.00% <0.00%> (-79.89%) 0.00% <0.00%> (-48.00%)
.../nl/vpro/elasticsearchclient/BulkRequestEntry.java 0.00% <0.00%> (-53.66%) 0.00% <0.00%> (-6.00%)
...pro/elasticsearchclient/SimpleESClientFactory.java 0.00% <0.00%> (-50.00%) 0.00% <0.00%> (-2.00%)
...pro/elasticsearchclient/ElasticSearchIterator.java 0.00% <0.00%> (-47.55%) 0.00% <0.00%> (-24.00%)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49922c8...e00be9b. Read the comment docs.

}
}
if (properties.isMeterLocks()) {
Gauge.builder("locks.currentCount", ObjectLockerAdmin.JMX_INSTANCE, ObjectLockerAdmin::getCurrentCount)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use lower case by convention zo current.count. Not sure wether "count" provides the strongest semantics here, does it mean: "lock active"?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would perhaps be better, but I think its also worth somethng to follow the method names already in use.

Gauge.builder("locks.currentCount", ObjectLockerAdmin.JMX_INSTANCE, ObjectLockerAdmin::getCurrentCount)
.description("The current number of locked objects")
.register(registry);
Gauge.builder("locks.maxConcurrency", ObjectLockerAdmin.JMX_INSTANCE, ObjectLockerAdmin::getMaxConcurrency)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here lower case only. And what does max.concurrency mean?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put the meaning in the description.

@mihxil mihxil merged commit a5e7c15 into master May 21, 2021
@mihxil mihxil deleted the feature/gauge_locks branch May 21, 2021 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants