zhyyu commented on issue #7169:
URL: https://github.com/apache/skywalking/issues/7169#issuecomment-869431894
> If `if (newItemValue == null) {` and `if (watcher.value() == null) {`
matched, nothing should happen, like `// Don't need to notify, stay in null.`.
But when init `DBLatencyThresholdsAndWatcher`, it will use default value to
set the watcher value, so `watcher.value() == null` cannot be true and then
trigger the delete event.
```
public DBLatencyThresholdsAndWatcher(String config, ModuleProvider provider)
{
// ...
activeSetting(config);
}
private void activeSetting(String config) {
// ...
settingsString.set(config);
}
@Override
public String value() {
return settingsString.get();
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]