When the node startup, NiFi will create processor and load the property & state.
But ListHDFS will ignore the previous listed-state stored on Zookeeper, and relist all file again.
And I found when we call the function setProperty, we only check the value between default and newValue. If oldValue is same with newValue, it'll also trigger function onPropertyModified.
It casue ListHDFS loaclVariable: resetState to be true. When ListHDFS be triggered, it'll clear the state empty, and relist all the files in the directory.