Omitting deprecated "users.*" settings for TiFlash#1211
Omitting deprecated "users.*" settings for TiFlash#1211ti-chi-bot merged 4 commits intopingcap:masterfrom
"users.*" settings for TiFlash#1211Conversation
Signed-off-by: JaySon-Huang <tshent@qq.com>
"users.*" settings for TiFlash
Codecov Report
@@ Coverage Diff @@
## master #1211 +/- ##
===========================================
+ Coverage 26.24% 47.06% +20.82%
===========================================
Files 263 254 -9
Lines 18678 17730 -948
===========================================
+ Hits 4902 8345 +3443
+ Misses 13023 8009 -5014
- Partials 753 1376 +623
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
"users.*" settings for TiFlash"users.*" settings for TiFlash
|
|
"users.*" settings for TiFlash"users.*" settings for TiFlash
|
@AstroProfundis PTAL |
| pathConfig = fmt.Sprintf(`path: "%s"`, cfg.DataDir) | ||
| } | ||
|
|
||
| if (semver.Compare(clusterVersion, "v4.0.12") >= 0 && semver.Compare(clusterVersion, "v5.0.0-rc") != 0) || clusterVersion == "nightly" { |
There was a problem hiding this comment.
It's better to use utils.Version(clusterVersion).IsNightly() to check for nightly versions, the actual version in topo will be expanded from nightly to a specific version at that date.
There was a problem hiding this comment.
I push a commit to use utils.Version(clusterVersion).IsNightly() for TiFlash.
But I'm wondering should I also change this code in playground.go?
tiup/components/playground/playground.go
Line 688 in bd3cf97
There was a problem hiding this comment.
I think so, it's better to change playground.go too.
…_tiflash_settings
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by writing |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: c1bbd33 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1211 +/- ##
===========================================
+ Coverage 26.24% 47.06% +20.82%
===========================================
Files 263 254 -9
Lines 18678 17730 -948
===========================================
+ Hits 4902 8345 +3443
+ Misses 13023 8009 -5014
- Partials 753 1376 +623
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: JaySon-Huang tshent@qq.com
What problem does this PR solve?
A part of pingcap/tiflash#1497.
TiFlash PRs on 5.0.x and 4.0.x: pingcap/tiflash#1526, pingcap/tiflash#1535
Some access control settings are inherited from Clickhouse and useless for TiFlash, we make these settings to be the default value if empty since v4.0.12 and v5.0.0. Some settings (like
password = "") make trouble for TiFlash users when their configuration files are scanned by a security scanner.This PR make TiUP don't generate those deprecated settings for cluster version >= v4.0.12 and not euqals to v5.0.0-rc
What is changed and how it works?
Ignore the
'users.*'and'quotas.*'settings in TiFlash if the cluster version >= v4.0.12 and not equals to v5.0.0-rc.But keep those settings for version <= v4.0.11
Check List
Tests
Code changes
Side effects
Related changes
Release notes: