Briefly, this error occurs when Elasticsearch tries to close a ticker thread but gets interrupted. This could be due to a sudden shutdown or a resource conflict. To resolve this issue, you can try the following: 1) Ensure that Elasticsearch is properly shut down before closing the ticker thread. 2) Check for any resource conflicts and resolve them. 3) If the problem persists, consider increasing the timeout period for closing threads. 4) Lastly, check your Elasticsearch logs for any additional information that might help identify the root cause of the problem.
This guide will help you check for common problems that cause the log ” caught an interrupted exception when waiting while closing ticker thread ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, thread.
Log Context
Log “caught an interrupted exception when waiting while closing ticker thread” classname is TickerScheduleTriggerEngine.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
logger.trace("stopping ticker thread"); active = false; try { closeLatch.await(); } catch (InterruptedException e) { logger.warn("caught an interrupted exception when waiting while closing ticker thread"; e); Thread.currentThread().interrupt(); } logger.trace("ticker thread stopped"); } }