Skip to content

[#2795]Fixed the issue that the dynamic modification configuration of gray release is invalid. #2799

Merged
liubao68 merged 2 commits intoapache:masterfrom
m13922236379:m13922236379-patch-2
Apr 26, 2022
Merged

[#2795]Fixed the issue that the dynamic modification configuration of gray release is invalid. #2799
liubao68 merged 2 commits intoapache:masterfrom
m13922236379:m13922236379-patch-2

Conversation

@m13922236379
Copy link
Contributor

The new constructor makes the original constructor invalid.Combine the two constructors so that the class is loaded correctly.

The new constructor makes the original constructor invalid.
public RouterRuleCache(Environment environment) {
representer.getPropertyUtils().setSkipMissingProperties(true);
GovernanceEventManager.register(this);
this.environment = environment;
Copy link
Member

Choose a reason for hiding this comment

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

maybe we should put this line to the first line of consturctor


public RouterRuleCache() {
@Autowired
public RouterRuleCache(Environment environment) {
Copy link
Member

Choose a reason for hiding this comment

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

can we mark environment final?

@liubao68 liubao68 merged commit 67cc3c5 into apache:master Apr 26, 2022
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.

3 participants