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

Cleanup unused config kyuubi.frontend.thrift.http.allow.user.substitution #5912

Closed
wants to merge 3 commits into from

Conversation

bowenliang123
Copy link
Contributor

@bowenliang123 bowenliang123 commented Dec 25, 2023

🔍 Description

Issue References 🔗

As decribed.

Describe Your Solution 🔧

Drop the unused config of KyuubiConf, which are never used and linked in source code and test code:

  • FRONTEND_THRIFT_HTTP_ALLOW_USER_SUBSTITUTION: kyuubi.frontend.thrift.http.allow.user.substitution

Types of changes 🔖

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪

Behavior Without This Pull Request ⚰️

Behavior With This Pull Request 🎉

Related Unit Tests


Checklists

📝 Author Self Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • This patch was not authored or co-authored using Generative Tooling

📝 Committer Pre-Merge Checklist

  • Pull request title is okay.
  • No license issues.
  • Milestone correctly set?
  • Test coverage is ok
  • Assignees are selected.
  • Minimum number of approvals
  • No changes are requested

Be nice. Be informative.

@github-actions github-actions bot added kind:documentation Documentation is a feature! module:common labels Dec 25, 2023
@wForget
Copy link
Member

wForget commented Dec 25, 2023

CREDENTIALS_HADOOP_FS_ENABLED: kyuubi.credentials.hadoopfs.enabled
CREDENTIALS_HIVE_ENABLED: kyuubi.credentials.hive.enabled

They are used.

FYI:

private val providerEnabledConfig = "kyuubi.credentials.%s.enabled"

@wForget
Copy link
Member

wForget commented Dec 25, 2023

ENGINE_HIVE_MAIN_RESOURCE: kyuubi.session.engine.hive.main.resource

it is also used.

FYI:

conf.getOption(s"kyuubi.session.engine.$shortName.main.resource").filter { userSpecified =>

@@ -743,14 +729,6 @@ object KyuubiConf {
.toSequence()
.createWithDefault(Nil)

val FRONTEND_THRIFT_HTTP_ALLOW_USER_SUBSTITUTION: ConfigEntry[Boolean] =
Copy link
Member

Choose a reason for hiding this comment

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

@mahmoudbahaa This configuration was introduced in #2815, could you please help us see if it is used?

@bowenliang123
Copy link
Contributor Author

bowenliang123 commented Dec 25, 2023

Thanks for your double-checks. @wForget
Let me skip the kyuubi.credentials.hadoopfs.enabled and kyuubi.session.engine.hive.main.resource.
This PR is not necessary if there's any possible risk for breaking changes.

@bowenliang123 bowenliang123 marked this pull request as draft December 25, 2023 02:56
@codecov-commenter
Copy link

codecov-commenter commented Dec 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (86bec4d) 61.54% compared to head (b938058) 61.54%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5912      +/-   ##
============================================
- Coverage     61.54%   61.54%   -0.01%     
  Complexity       23       23              
============================================
  Files           616      616              
  Lines         36387    36382       -5     
  Branches       4978     4978              
============================================
- Hits          22394    22390       -4     
- Misses        11573    11579       +6     
+ Partials       2420     2413       -7     

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

@bowenliang123 bowenliang123 changed the title Cleanup unused configs of KyuubiConf Cleanup unused config kyuubi.frontend.thrift.http.allow.user.substitution Dec 25, 2023
@bowenliang123 bowenliang123 marked this pull request as ready for review December 25, 2023 05:35
@github-actions github-actions bot removed the kind:documentation Documentation is a feature! label Dec 25, 2023
@github-actions github-actions bot added the kind:documentation Documentation is a feature! label Dec 25, 2023
@bowenliang123 bowenliang123 self-assigned this Dec 28, 2023
@bowenliang123 bowenliang123 added this to the v1.9.0 milestone Dec 28, 2023
@bowenliang123 bowenliang123 deleted the unused-configs branch December 28, 2023 07:53
@bowenliang123
Copy link
Contributor Author

Thanks, merged to master.
Please inform us if this removal is inappropriate. @mahmoudbahaa

@yaooqinn
Copy link
Member

yaooqinn commented Dec 28, 2023

BTW, it seems that 📝 Committer Pre-Merge Checklist is not welcomed at all. @bowenliang123

@bowenliang123
Copy link
Contributor Author

BTW, it seems that 📝 Committer Pre-Merge Checklist is not welcomed at all. @bowenliang123

Agree. It's quite heavy to fill the radio options either in markdown or on the interactive page.

@yaooqinn
Copy link
Member

Can you send it PR to remove?

@bowenliang123
Copy link
Contributor Author

I don't have better ideas in mind right now. Maybe we'd better revert it to the previous version of the pre-commit list, and skip the pre-merge list.

zhaohehuhu pushed a commit to zhaohehuhu/incubator-kyuubi that referenced this pull request Mar 21, 2024
…tp.allow.user.substitution`

# 🔍 Description
## Issue References 🔗

As decribed.

## Describe Your Solution 🔧

Drop the unused config of KyuubiConf, which are never used and linked in source code and test code:
- FRONTEND_THRIFT_HTTP_ALLOW_USER_SUBSTITUTION: `kyuubi.frontend.thrift.http.allow.user.substitution`

## Types of changes 🔖

- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

#### Behavior Without This Pull Request ⚰️

#### Behavior With This Pull Request 🎉

#### Related Unit Tests

---

# Checklists
## 📝 Author Self Checklist

- [x] My code follows the [style guidelines](https://kyuubi.readthedocs.io/en/master/contributing/code/style.html) of this project
- [x] I have performed a self-review
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

## 📝 Committer Pre-Merge Checklist

- [ ] Pull request title is okay.
- [ ] No license issues.
- [ ] Milestone correctly set?
- [ ] Test coverage is ok
- [ ] Assignees are selected.
- [ ] Minimum number of approvals
- [ ] No changes are requested

**Be nice. Be informative.**

Closes apache#5912 from bowenliang123/unused-configs.

Closes apache#5912

b938058 [Bowen Liang] update doc
9fd441d [Bowen Liang] fix
9b0b31e [Bowen Liang] cleanup unused config entries in KyuubiConf

Authored-by: Bowen Liang <liangbowen@gf.com.cn>
Signed-off-by: Bowen Liang <liangbowen@gf.com.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:documentation Documentation is a feature! module:common
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants