Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-12621. Change NodeStatus to value-based. #8105

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

szetszwo
Copy link
Contributor

What changes were proposed in this pull request?

All the fields in NodeStatus won't be changed. We should change it to a value-based class. The main changes are:

  • adding valueOf(..) methods,
  • hiding the constructors, and
  • replace the constructor calls

We also add a CONSTANT_MAP for storing all the NodeStatus objects with opStateExpiryEpochSeconds == 0.

What is the link to the Apache JIRA

HDDS-12621

How was this patch tested?

By updating existing tests.

@szetszwo szetszwo requested review from sodonnel, siddhantsangwan, Tejaskriya and adoroszlai and removed request for sodonnel and siddhantsangwan March 18, 2025 18:46
@adoroszlai adoroszlai merged commit b402b7c into apache:master Mar 19, 2025
43 checks passed
@adoroszlai
Copy link
Contributor

Thanks @szetszwo for the patch.

@szetszwo
Copy link
Contributor Author

@adoroszlai , thanks a lot for reviewing and merging this!

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.

2 participants