sodonnel commented on PR #12218: URL: https://github.com/apache/ozone/pull/12218#issuecomment-7353231452
Here is an alternative implementation cooked up by Claude. It seems simpler to me, and I like that the metrics go and get the current state when they are generated rather than having to worry about storing it into the metrics. However I am not insisting in this direction - see which method you prefer. https://github.com/apache/ozone/compare/master...sodonnel:hadoop-ozone:HDDS-17968-alt It also addresses some of the concerns in this change: ``` ┌────────────────────────────────────────────┬──────────────────────────┬──────────────────────────────────┐ │ │ PR #12218 │ This branch │ ├────────────────────────────────────────────┼──────────────────────────┼──────────────────────────────────┤ │ Metrics work in Ratis callbacks │ 2, plus startup ordering │ none │ ├────────────────────────────────────────────┼──────────────────────────┼──────────────────────────────────┤ │ Startup race, stale window after step-down │ handled one by one │ can't happen: state is read live │ ├────────────────────────────────────────────┼──────────────────────────┼──────────────────────────────────┤ │ Re-registration during shutdown │ yes │ no │ ├────────────────────────────────────────────┼──────────────────────────┼──────────────────────────────────┤ │ Leader-path reorder in SCMStateMachine │ yes │ no │ └────────────────────────────────────────────┴──────────────────────────┴──────────────────────────────────┘ ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
