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-1264] ConfigService supports TENANT_USER config level #2285

Closed
wants to merge 32 commits into from

Conversation

AngersZhuuuu
Copy link
Contributor

@AngersZhuuuu AngersZhuuuu commented Feb 4, 2024

What changes were proposed in this pull request?

ConfigService support user level config

Why are the changes needed?

Support more case of config, later can integrate with quota manager

Does this PR introduce any user-facing change?

With this pr, user's setting form config service will have three level

  • User
  • Tenant
  • System

User identifier is construct by username and tenantId,
If there is no specify setting for username, will fallback to tenant level setting, if tenant level setting also not set, fallback to system setting

How was this patch tested?

Added UT

@AngersZhuuuu
Copy link
Contributor Author

AngersZhuuuu commented Feb 4, 2024

ping @SteNicholas @RexXiong cc @leixm

Copy link

codecov bot commented Feb 4, 2024

Codecov Report

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

Comparison is base (7a05b2f) 48.85% compared to head (a119e91) 48.93%.

Files Patch % Lines
...ver/common/service/config/FsConfigServiceImpl.java 82.15% 0 Missing and 5 partials ⚠️
...rver/common/service/model/ClusterTenantConfig.java 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2285      +/-   ##
==========================================
+ Coverage   48.85%   48.93%   +0.09%     
==========================================
  Files         208      208              
  Lines       12837    12893      +56     
  Branches     1104     1113       +9     
==========================================
+ Hits         6270     6308      +38     
- Misses       6167     6176       +9     
- Partials      400      409       +9     

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

@RexXiong
Copy link
Contributor

RexXiong commented Feb 5, 2024

@AngersZhuuuu ConfigService has been refined, pls resolve the conflict, refer: #2273

@AngersZhuuuu
Copy link
Contributor Author

@RexXiong @SteNicholas Pls take a look again, have changed base on new code.

@AngersZhuuuu AngersZhuuuu changed the title [CELEBORN-1264][IMPROVEMENT] ConfigService support user level config [CELEBORN-1264][IMPROVEMENT] FsConfigServiceImpl support user level config Feb 5, 2024
@SteNicholas
Copy link
Member

SteNicholas commented Feb 6, 2024

@AngersZhuuuu, could you add description about introduced interfaces in Does this PR introduce any user-facing change?? IMO, this pull request introduces certain user-facing interface. Meanwhile, does the title of this pull request need to update?

@AngersZhuuuu AngersZhuuuu marked this pull request as draft February 6, 2024 10:32
@AngersZhuuuu AngersZhuuuu marked this pull request as ready for review February 7, 2024 02:48
@AngersZhuuuu AngersZhuuuu changed the title [CELEBORN-1264][IMPROVEMENT] FsConfigServiceImpl support user level config [CELEBORN-1264][IMPROVEMENT] ConfigService support user level config Feb 18, 2024
@SteNicholas SteNicholas changed the title [CELEBORN-1264][IMPROVEMENT] ConfigService support user level config [CELEBORN-1264] ConfigService supports tenant user level config Feb 18, 2024
@SteNicholas SteNicholas changed the title [CELEBORN-1264] ConfigService supports tenant user level config [CELEBORN-1264] ConfigService supports TENANT_USER config level Feb 18, 2024
@AngersZhuuuu
Copy link
Contributor Author

Merge to master branch, thanks

tiny-dust pushed a commit to tiny-dust/incubator-celeborn that referenced this pull request Feb 20, 2024
### What changes were proposed in this pull request?
 ConfigService support user level config

### Why are the changes needed?
Support more case of config, later can integrate with quota manager

### Does this PR introduce _any_ user-facing change?
With this pr, user's setting form config service will have three level

- User
- Tenant
- System

User identifier is construct by username and tenantId,
If there is no specify setting for username, will fallback to tenant level setting, if tenant level setting also not set, fallback to system setting

### How was this patch tested?
Added UT

Closes apache#2285 from AngersZhuuuu/CELEBORN-1264.

Authored-by: Angerszhuuuu <angers.zhu@gmail.com>
Signed-off-by: Angerszhuuuu <angers.zhu@gmail.com>
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.

4 participants