Skip to content

Conversation

@kgusakov
Copy link
Contributor

No description provided.

@kgusakov kgusakov marked this pull request as ready for review September 19, 2022 13:52
@kgusakov kgusakov changed the title IGNITE-17358 IGNITE-17358 Metric exporters' configurations. Sep 19, 2022
Copy link
Contributor

@agura agura left a comment

Choose a reason for hiding this comment

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

Please. fix some minors.

private List<MetricExporter> metricExporters;
private Map<String, MetricExporter> availableExporters;

private MetricConfiguration metricConfiguration;
Copy link
Contributor

Choose a reason for hiding this comment

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

In my understanding, at least this field should be volatile, because of we cannot guarantee that configure() and start() methods are called in the same thread or properly synchronized.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

configure and start has happens-before relations by design and must be called in sequence. Otherwise, we can start MetricManager with null configuration. In real code - IgniteImpl will do it

@asfgit asfgit closed this in abe1ada Oct 3, 2022
lowka pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Mar 18, 2023
Signed-off-by: Slava Koptilin <slava.koptilin@gmail.com>
lowka pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Apr 19, 2023
Signed-off-by: Slava Koptilin <slava.koptilin@gmail.com>
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.

3 participants