Skip to content

Conversation

@JackyYangPassion
Copy link
Contributor

Purpose of the PR

Main Changes

Verifying these changes

  • Trivial rework / code cleanup without any test coverage. (No Need)
  • Already covered by existing tests, such as (please modify tests here).
  • Need tests and can be verified as follows:
    • xxx

Does this PR potentially affect the following parts?

Documentation Status

  • Doc - TODO
  • Doc - Done
  • Doc - No Need

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. store Store module labels Jul 29, 2024
@shirleyStorage
Copy link
Contributor

LGTM~.
By the way, may be we can add some metrics-related unit tests.


public synchronized static void init(MeterRegistry meterRegistry) {
public synchronized static void init(MeterRegistry meterRegistry, boolean isInitialCall) {
if (registry == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we refactor to this style JRaftMetrics.instance(registry)

}

public synchronized static void init(MeterRegistry meterRegistry) {
public synchronized static void init(MeterRegistry meterRegistry, boolean isInitialCall) {
Copy link
Contributor

Choose a reason for hiding this comment

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

isInitialCall -- Is there an elegant way to avoid this a bit complex branching?

@github-actions
Copy link

github-actions bot commented Sep 9, 2024

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

log.debug("JRaftMetrics initialized during scheduled refresh");
}
} else if (!isInitialCall) {
registerNodeMetrics();
Copy link
Contributor

Choose a reason for hiding this comment

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

prefer to add a new method like resetNodeMetrics() instead of adding a isInitialCall param

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your suggestion, I will optimize it

@github-actions github-actions bot closed this May 3, 2025
@github-project-automation github-project-automation bot moved this from In progress to Done in HugeGraph PD-Store Tasks May 3, 2025
@github-project-automation github-project-automation bot moved this from Done to In progress in HugeGraph PD-Store Tasks May 6, 2025
@codecov
Copy link

codecov bot commented May 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 40.22%. Comparing base (8c1ee71) to head (95b91c0).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2604      +/-   ##
============================================
- Coverage     41.13%   40.22%   -0.91%     
- Complexity      333      613     +280     
============================================
  Files           747      758      +11     
  Lines         60123    61273    +1150     
  Branches       7676     7873     +197     
============================================
- Hits          24730    24647      -83     
- Misses        32809    34030    +1221     
- Partials       2584     2596      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inactive size:M This PR changes 30-99 lines, ignoring generated files. store Store module

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

[Bug] HStore Spring Actuator Metrics Sink Initialization once causes missing metrics

3 participants