I run this before I try to shutdown Elasticsearch:
curl -XGET 'http://localhost:9200/_watcher/stats/_all?emit_stacktraces&pretty'
{
"watcher_state" : "started",
"watch_count" : 0,
"execution_thread_pool" : {
"queue_size" : 17,
"max_size" : 10
},
"current_watches" : [ {
"watch_id" : "my-watch",
"watch_record_id" : "my-watch_2-2015-10-09T03:32:00.458Z",
"triggered_time" : "2015-10-09T03:32:00.458Z",
"execution_time" : "2015-10-09T03:32:00.458Z",
"execution_phase" : "actions",
"executed_actions" : [ ],
"stack_trace" : [ "java.net.SocketInputStream.socketRead0(Native Method)", "java.net.SocketInputStream.socketRead(SocketInputStream.java:116)", "java.net.SocketInputStream.read(SocketInputStream.java:170)", "java.net.SocketInputStream.read(SocketInputStream.java:141)", "com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124)", "java.io.BufferedInputStream.fill(BufferedInputStream.java:246)", "java.io.BufferedInputStream.read(BufferedInputStream.java:265)", "com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89)", "com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2285)", "com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2032)", "com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:697)", "javax.mail.Service.connect(Service.java:364)", "org.elasticsearch.watcher.actions.email.service.Account.send(Account.java:99)", "org.elasticsearch.watcher.actions.email.service.InternalEmailService.send(InternalEmailService.java:84)", "org.elasticsearch.watcher.actions.email.service.InternalEmailService.send(InternalEmailService.java:78)", "org.elasticsearch.watcher.actions.email.ExecutableEmailAction.execute(ExecutableEmailAction.java:67)", "org.elasticsearch.watcher.actions.ActionWrapper.execute(ActionWrapper.java:104)", "org.elasticsearch.watcher.execution.ExecutionService.executeInner(ExecutionService.java:379)", "org.elasticsearch.watcher.execution.ExecutionService.execute(ExecutionService.java:271)", "org.elasticsearch.watcher.execution.ExecutionService$WatchExecutionTask.run(ExecutionService.java:417)", "java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)", "java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)", "java.lang.Thread.run(Thread.java:745)" ]
} ],
"queued_watches" : [ {
"watch_id" : "my-watch",
"watch_record_id" : "my-watch_12-2015-10-09T03:42:00.138Z",
"triggered_time" : "2015-10-09T03:42:00.137Z",
"execution_time" : "2015-10-09T03:42:00.138Z"
}, {
"watch_id" : "my-watch",
"watch_record_id" : "my-watch_13-2015-10-09T03:43:00.154Z",
"triggered_time" : "2015-10-09T03:43:00.154Z",
"execution_time" : "2015-10-09T03:43:00.154Z"
}, {
"watch_id" : "my-watch",
"watch_record_id" : "my-watch_14-2015-10-09T03:44:00.170Z",
"triggered_time" : "2015-10-09T03:44:00.170Z",
"execution_time" : "2015-10-09T03:44:00.170Z"
}, {
"watch_id" : "my-watch",
"watch_record_id" : "my-watch_15-2015-10-09T03:45:00.187Z",
"triggered_time" : "2015-10-09T03:45:00.186Z",
"execution_time" : "2015-10-09T03:45:00.187Z"
}, {
"watch_id" : "my-watch",
"watch_record_id" : "my-watch_16-2015-10-09T03:46:00.207Z",
"triggered_time" : "2015-10-09T03:46:00.207Z",
"execution_time" : "2015-10-09T03:46:00.207Z"
}, {
"watch_id" : "my-watch",
"watch_record_id" : "my-watch_17-2015-10-09T03:47:00.223Z",
"triggered_time" : "2015-10-09T03:47:00.223Z",
"execution_time" : "2015-10-09T03:47:00.223Z"
}, {
"watch_id" : "my-watch",
"watch_record_id" : "my-watch_18-2015-10-09T03:48:00.241Z",
"triggered_time" : "2015-10-09T03:48:00.241Z",
"execution_time" : "2015-10-09T03:48:00.241Z"
}, {
"watch_id" : "my-watch",
"watch_record_id" : "my-watch_19-2015-10-09T03:49:00.273Z",
"triggered_time" : "2015-10-09T03:49:00.272Z",
"execution_time" : "2015-10-09T03:49:00.273Z"
}, {
"watch_id" : "my-watch",
"watch_record_id" : "my-watch_20-2015-10-09T03:50:00.291Z",
"triggered_time" : "2015-10-09T03:50:00.291Z",
"execution_time" : "2015-10-09T03:50:00.291Z"
}, {
"watch_id" : "my-watch",
"watch_record_id" : "my-watch_21-2015-10-09T03:51:00.308Z",
"triggered_time" : "2015-10-09T03:51:00.308Z",
"execution_time" : "2015-10-09T03:51:00.308Z"
} ...(delete some queued watches because post length limit exceed)]
}
but now, I run the same as before, it just get:
curl -XGET 'http://localhost:9200/_watcher/stats/_all?emit_stacktraces&pretty'
curl: (7) couldn't connect to host