Skip to content

Conversation

@aswinshakil
Copy link
Member

What changes were proposed in this pull request?

ReplicationManager can be stopped/restarted by admin from CLI. stop() unregisters the metrics source, and start() used to (re)create it. But now after #5126 it isn't re-created, so it won't work after restart. This patch fixes that by initiating ReplicationManagerMetrics again during start() with the same instance.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-9235

How was this patch tested?

Existing Tests.

@aswinshakil aswinshakil self-assigned this Feb 26, 2024
Copy link
Contributor

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

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

LGTM

@sodonnel
Copy link
Contributor

Seems to be some related unit test failures.

@adoroszlai adoroszlai merged commit 543c9e7 into apache:master Feb 28, 2024
@adoroszlai
Copy link
Contributor

Thanks @aswinshakil for the patch, @sodonnel for the review.

adoroszlai pushed a commit to adoroszlai/ozone that referenced this pull request Mar 5, 2024
jojochuang pushed a commit to jojochuang/ozone that referenced this pull request Mar 15, 2024
…pache#6280)

(cherry picked from commit 543c9e7)
Change-Id: I85eae2e0372cd8458c847ecb4685394bf4a1c62b
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