This method of clearing the Notification cache has less impact on the system because you are only stopping the SAM publisher.
Procedure
- Stop the publisher: $ bin/dmctl -s INCHARGE-SA-PRES invoke SM_AMQPNotificationPublisher::SM-AMQPNotificationPublisher stop
- Clear the Notifications cache by typing these commands:
- $ bin/sm_service stop smarts-elasticsearch
- $ rm -rf local/repos/elasticsearch
- $ bin/sm_service start smarts-elasticsearch
- Restart the publisher: $ bin/dmctl -s INCHARGE-SA-PRES invoke SM_AMQPNotificationPublisher::SM-AMQPNotificationPublisher start