Skip to content

Comments

HDDS-9772. Avoid recreating typesafe config objects unnecessarily#5690

Merged
adoroszlai merged 3 commits intoapache:masterfrom
adoroszlai:HDDS-9772
Nov 30, 2023
Merged

HDDS-9772. Avoid recreating typesafe config objects unnecessarily#5690
adoroszlai merged 3 commits intoapache:masterfrom
adoroszlai:HDDS-9772

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

XceiverServerRatis creates DatanodeRatisServerConfig repeatedly for accessing individual properties. It should create it only once and reuse.

Some other similar usage patterns are also fixed.

Ideally we should strive to pass these objects from fewer places, but that change would affect many classes, and cause conflict in other tasks in-progress. Hence this change is limited in scope.

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

How was this patch tested?

CI:
https://github.com/adoroszlai/ozone/actions/runs/7019067260

@adoroszlai adoroszlai self-assigned this Nov 28, 2023
@guohao-rosicky
Copy link
Contributor

@adoroszlai Thanks, work on this, That's a good idea, LGTM.

@adoroszlai adoroszlai merged commit c656504 into apache:master Nov 30, 2023
@adoroszlai
Copy link
Contributor Author

Thanks @guohao-rosicky for the review.

@adoroszlai adoroszlai deleted the HDDS-9772 branch November 30, 2023 08:20
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