Skip to content

DynamicConfigService.removeConfigListener使用checkKey有误 #1811

@atell

Description

@atell

What happened?

下方不应该是checkKey(key),否则预期结果会相反

public boolean removeConfigListener(String key, String group) {
if (checkKey(key)) {
return false;
}
return doRemoveConfigListener(key, fixGroup(group));
}

How can we reproduce it (as minimally and precisely as possible)?

checkKey(key),应该改为!checkKey(key)

Anything else we need to know?

No response

Sermant version

Details 所有版本

OS version

Details
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions