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

[CELEBORN-1052][FOLLOWUP] Introduce dynamic ConfigService at SystemLevel and TenantLevel #2125

Closed
wants to merge 3 commits into from

Conversation

SteNicholas
Copy link
Member

@SteNicholas SteNicholas commented Nov 30, 2023

What changes were proposed in this pull request?

Follow up #2100. Mainly changes the package from scala to java of the codes in #2100. Meanwhile, FsConfigServiceImpl#refresh should directly return instead of refreshing configs.

Why are the changes needed?

This PR follow up dynamic ConfigService at SystemLevel and TenantLevel, Dynamic configuration is a type of configuration that can be changed at runtime as needed in #2100. The implementation of ConfigService is based on Java codes, which are put into Scala package and cause that the spotless plugin does not format well. After the changes of the pull request, there are much code style changes generated from the package moving behavior.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

ConfigServiceSuiteJ.

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (8a15396) 47.13% compared to head (60c4666) 47.21%.
Report is 2 commits behind head on main.

Files Patch % Lines
...rn/server/common/service/config/DynamicConfig.java 60.00% 1 Missing and 1 partial ⚠️
...ver/common/service/config/FsConfigServiceImpl.java 71.43% 1 Missing and 1 partial ⚠️
...orn/server/common/service/config/TenantConfig.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2125      +/-   ##
==========================================
+ Coverage   47.13%   47.21%   +0.08%     
==========================================
  Files         173      173              
  Lines       11034    11039       +5     
  Branches     1011     1011              
==========================================
+ Hits         5200     5211      +11     
+ Misses       5494     5486       -8     
- Partials      340      342       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pan3793
Copy link
Member

pan3793 commented Dec 1, 2023

why do moving files produce lots of code style changes?

@SteNicholas
Copy link
Member Author

@pan3793, the implementation of ConfigService is based on Java codes, which are put into Scala package and the format does not work.

@pan3793
Copy link
Member

pan3793 commented Dec 1, 2023

@pan3793, the implementation of ConfigService is based on Java codes, which are put into Scala package and the format does not work.

alright, put such information to "Why are the changes needed?"

@SteNicholas
Copy link
Member Author

@pan3793, thanks for the reminder. I have updated Why are the changes needed?. PTAL.

Copy link
Contributor

@RexXiong RexXiong left a comment

Choose a reason for hiding this comment

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

LGTM, merge to main(v0.4.0)

@RexXiong RexXiong closed this in 406cef8 Dec 4, 2023
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