-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[ISSUE#12217] Improve the gray configuration #12501
[ISSUE#12217] Improve the gray configuration #12501
Conversation
|
||
private String type; | ||
@SerializedName("gray_type") | ||
private String grayType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里为什么要改字段参数名?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个type字段在grayrule上下文中应该是没有歧义的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在 config_info 里有个 type 字段用来记录配置格式,比如 {"type":"properties"},现在这个 type 会被记录到his_config_info 表的 ext_info 字段中,这里灰度的 type 也是记录到 ext_info 中去,我感觉这样可能会有歧义,所以就改了一下,不知道这样合不合适
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
tenantTmp, grayNameTmp); | ||
if (oldConfigAllInfo4Gray == null) { | ||
if (LogUtil.FATAL_LOG.isErrorEnabled()) { | ||
LogUtil.FATAL_LOG.error("expected config info[dataid:{}, group:{}, tenent:{}] but not found.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里加个warn日志就行, 不要报error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config/src/main/java/com/alibaba/nacos/config/server/model/ConfigAllInfo4Gray.java
already merge into develop throught another pr, close it. |
What is the purpose of the change
Improve the gray configuration, add the historical records of gray configuration changes and adjust the console interface,its closes #12217
Brief changelog
Verifying this change
Follow this checklist to help us incorporate your contribution quickly and easily:
[ISSUE #123] Fix UnknownException when host config not exist
. Each commit in the pull request should have a meaningful subject line and body.mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true
to make sure basic checks pass. Runmvn clean install -DskipITs
to make sure unit-test pass. Runmvn clean test-compile failsafe:integration-test
to make sure integration-test pass.