opendistro-for-elasticsearch / performance-analyzer

📈 OpenDistro Performance Analyzer
https://opendistro.github.io/
Apache License 2.0
146 stars 49 forks source link

When PA plugin starting up, it always re-write performance_analyzer_enabled.conf file #318

Open vietic opened 2 years ago

vietic commented 2 years ago

The method initPerformanceAnalyzerStateFromConf inside of the class PerformanceAnalyzerController is always end-up to call the method updatePerformanceAnalyzerState that always re-writes the performance_analyzer_enabled.conf file even though the file had same value before.

The plugin should have to write the file when needed.