elasticsearch-readonlyrest-plugin
elasticsearch-readonlyrest-plugin copied to clipboard
[RORDEV-1488] ES startup settings related to loading ROR settings
🧐Enhancement (ES) ROR settings related JVM properties improvements
Two new properties have been added to control retry behavior when loading ReadonlyREST settings from the index:
com.readonlyrest.settings.loading.attempts.count(default 5) - specifies the number of retry attempts to load the in-index ReadonlyREST settings before falling back to the .readonlyrest file.com.readonlyrest.settings.loading.attempts.interval(default 5s) - defines the interval between retry attempts.
Summary by CodeRabbit
-
New Features
- Added configurable retry logic and fallback mechanisms for loading configuration, including new settings for delay, attempts count, and interval.
- Improved error reporting for missing configuration indices.
-
Improvements
- Enhanced type safety and clarity for configuration loading parameters.
- Refined configuration property names for better clarity and consistency.
- More explicit and robust handling of configuration loading errors.
- Updated JVM options to include default settings for loading delay, attempts count, and interval.
-
Bug Fixes
- Corrected error message mappings and improved error handling for non-existent indices.
- Fixed method naming for reload interval configuration.
-
Tests
- Updated tests to reflect new configuration loading parameters and improved type safety.
- Reduced redundant test calls and improved test setup for configuration loading scenarios.
-
Chores
- Updated plugin version to 1.65.0-pre4.