Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Cannot Reproduce
-
None
-
None
-
all platforms
Description
Whenever we set a property value in a .properties file, the comments are created twice. For example, the following is the content of the property file initially.
- This is comment.
PropName = PropValue1
When we change the property value, the comment line is updated twice.
- This is comment.
- This is comment.
PropName = PropValue2
This issue is seen only when we use setReloadingStrategy() method to notify the property change event to another running process.
We are using the following code to notify the process which uses this property.
propConf.setReloadingStrategy(new FileChangedReloadingStrategy());
If we remove the above code, we do not see this issue. But if we do not use this method, the process which uses this property doesnt get this new value.