Issue
-
Most of the time, the Liferay auto-initiated "MlDailyMaintenanceService" job runs daily at midnight. It also corrupted all indexes, as this job deleted some files. Due to the index getting corrupted, no content is visible on the site.
Environment
- Liferay DXP 7.4
- Elasticsearch
Resolution
- The MlDailyMaintenanceService task is not related to Liferay DXP, instead, it is associated with Elasticsearch.
-
This maintenance service is initiated by Elasticsearch. For more details, kindly refer to the articles mentioned below.:
ML daily maintenance task
How to stop Ml Daily Maintenance Service in elasticsearch -
The WARN messages in the Elasticsearch application logs are associated with Elasticsearch's maintenance activities. This is not a Liferay DXP maintenance operation.
Additional Information
-
Please check this MlDailyMaintenanceService.java class for more information:
https://github.com/elastic/elasticsearch/blob/master/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/MlDailyMaintenanceService.java
NOTE: Liferay Support does not recommend or endorse specific third-party products over others. The information provided about products not created by Liferay is for reference purposes only, and any implementation of these principles will be at your team's discretion.