zhyyu commented on issue #7169:
URL: https://github.com/apache/skywalking/issues/7169#issuecomment-869270599
> I want to ask where is the delete event comes from? Why it happens? Did
you really delete the key?
I didn't delete the key, I just not config it. And I checked the code,
found that
```
ConfigWatcherRegister
void configSync() {
// ...
if (newItemValue == null) {
if (watcher.value() != null) {
// Notify watcher, the new value is null with
delete event type.
watcher.notify(
new
ConfigChangeWatcher.ConfigChangeEvent(null,
ConfigChangeWatcher.EventType.DELETE));
} else {
// Don't need to notify, stay in null.
}
// ...
```
So if we don't config the dynamic config, it will send delete event.
--
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]