Skip to content

Conversation

@Russole
Copy link
Contributor

@Russole Russole commented Dec 28, 2025

What changes were proposed in this pull request?

  • Refactored MockNodeManager to properly handle decommission and maintenance states, resolving inconsistencies in nodeMap and NodeOperationalState handling between MockNodeManager and SimpleMockNodeManager.
  • Ensured nodeMap as the single source of truth and kept it in sync with DatanodeDetails and persisted operational state.
  • Aligned MockNodeManager behavior with SimpleMockNodeManager to ensure consistent node operational state transitions in tests.
  • Added unit tests to verify setNodeOperationalState updates NodeStatus (including expiry) and throws NodeNotFoundException for unknown nodes.

What is the link to the Apache JIRA

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

How was this patch tested?

All existing GitHub CI checks passed, and the newly added unit tests passed successfully.

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.

1 participant