📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-7.15

简而言之,当Elasticsearch Watcher功能(监控数据变化)在轮询过程中被中断时,就会出现此错误。这可能是由于系统资源限制、网络问题或突然关闭造成的。要解决此问题,您可以增加系统资源,检查网络连接,确保稳定的环境以防止突然关闭,或调整Watcher的轮询间隔以降低其频率。如果问题仍然存在,请考虑检查Elasticsearch集群是否存在任何潜在问题。

日志上下文 #

日志"Watch[{}] reporting[{}] thread was interrupted; while waiting for polling. Aborting.“的类名是 ReportingAttachmentParser.java。我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人使用:

private void sleep(long sleepMillis, WatchExecutionContext context, ReportingAttachment attachment) {
 try {
 Thread.sleep(sleepMillis);
 } catch (InterruptedException e) {
 Thread.currentThread().interrupt();
 throw new ElasticsearchException("Watch[{}] reporting[{}] thread was interrupted; while waiting for polling. Aborting.",
 context.watch().id(), attachment.id());
 }
 }  /**