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

[ISSUE#12217] Improve the gray configuration #12501

Open
wants to merge 4 commits into
base: summer-glcc#12217
Choose a base branch
from

Conversation

MatthewAden
Copy link

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

  1. add the historical records of gray configuration changes
  2. adjust the console interface

Verifying this change

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.


private String type;
@SerializedName("gray_type")
private String grayType;
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里为什么要改字段参数名?

Copy link
Collaborator

Choose a reason for hiding this comment

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

这个type字段在grayrule上下文中应该是没有歧义的

Copy link
Author

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 中去,我感觉这样可能会有歧义,所以就改了一下,不知道这样合不合适

Copy link
Author

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.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里加个warn日志就行, 不要报error

Copy link
Author

Choose a reason for hiding this comment

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

done

Copy link

@Maszal2007 Maszal2007 left a 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

@Maszal2007
Copy link

config/src/main/java/com/alibaba/nacos/config/server/model/ConfigAllInfo4Gray.java
Uploading IMG_0436.jpeg…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants