ivandika3 commented on PR #9383:
URL: https://github.com/apache/ozone/pull/9383#issuecomment-3584879946
@chungen0126 Thanks for checking this out.
> I would like to ask if the new value can be null, and if so, what would
happens in that case?
From `ReconfigurableBase.ReconfigurationThread#run`, it if it's null, it
will unset the configuration.
```java
try {
String effectiveValue =
parent.reconfigurePropertyImpl(change.prop, change.newVal);
if (change.newVal != null) {
oldConf.set(change.prop, effectiveValue);
} else {
oldConf.unset(change.prop);
}
} catch (ReconfigurationException e) {
Throwable cause = e.getCause();
errorMessage = cause == null ? e.getMessage() : cause.getMessage();
}
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]