为什么es cluster停止工作,直到我删除旧索引?

时间:2016-02-19 02:11:25

标签: elasticsearch

es document中,它引入了If we restart Node 1,If Node 1 still has copies of the old shards, it will try to reuse them, copying over from the primary shard only the files that have changed in the meantime

所以我做了一个实验。

以下是我的群集中的5个节点,主分片1保存在节点1中,副本分片1保存在节点2中。当我重新启动节点时1和节点2,主要分片1的状态变为UNASSIGNED,副本分片1的状态变为{{ 1}},群集的运行状况也变为UNASSIGNED,运行状况永远不会变为red。群集停止工作,直到我删除旧索引。

这是主日志的一部分。

[ERROR][marvel.agent             ] [es10] background thread had an uncaught exception
ElasticsearchException[failed to flush exporter bulks]
    at org.elasticsearch.marvel.agent.exporter.ExportBulk$Compound.flush(ExportBulk.java:104)
    at org.elasticsearch.marvel.agent.exporter.ExportBulk.close(ExportBulk.java:53)
    at org.elasticsearch.marvel.agent.AgentService$ExportingWorker.run(AgentService.java:201)
    at java.lang.Thread.run(Thread.java:745)
    Suppressed: ElasticsearchException[failed to flush [default_local] exporter bulk]; nested: ElasticsearchException[failure in bulk execution, only the first 100 failures are printed:
[8]: index [.marvel-es-data], type [cluster_info], id [nm4dj3ucSRGsdautV_GDDw], message [UnavailableShardsException[[.marvel-es-data][1] primary shard is not active Timeout: [1m], request: [shard bulk {[.marvel-es-data][1]}]]]];
        at org.elasticsearch.marvel.agent.exporter.ExportBulk$Compound.flush(ExportBulk.java:106)
        ... 3 more
    Caused by: ElasticsearchException[failure in bulk execution, only the first 100 failures are printed:
[8]: index [.marvel-es-data], type [cluster_info], id [nm4dj3ucSRGsdautV_GDDw], message [UnavailableShardsException[[.marvel-es-data][1] primary shard is not active Timeout: [1m], request: [shard bulk {[.marvel-es-data][1]}]]]]
        at org.elasticsearch.marvel.agent.exporter.local.LocalBulk.flush(LocalBulk.java:114)
        at org.elasticsearch.marvel.agent.exporter.ExportBulk$Compound.flush(ExportBulk.java:101)
        ... 3 more
[2016-02-19 12:53:18,769][ERROR][marvel.agent             ] [es10] background thread had an uncaught exception
ElasticsearchException[failed to flush exporter bulks]
    at org.elasticsearch.marvel.agent.exporter.ExportBulk$Compound.flush(ExportBulk.java:104)
    at org.elasticsearch.marvel.agent.exporter.ExportBulk.close(ExportBulk.java:53)
    at org.elasticsearch.marvel.agent.AgentService$ExportingWorker.run(AgentService.java:201)
    at java.lang.Thread.run(Thread.java:745)
    Suppressed: ElasticsearchException[failed to flush [default_local] exporter bulk]; nested: ElasticsearchException[failure in bulk execution, only the first 100 failures are printed:
[8]: index [.marvel-es-data], type [cluster_info], id [nm4dj3ucSRGsdautV_GDDw], message [UnavailableShardsException[[.marvel-es-data][1] primary shard is not active Timeout: [1m], request: [shard bulk {[.marvel-es-data][1]}]]]];
        at org.elasticsearch.marvel.agent.exporter.ExportBulk$Compound.flush(ExportBulk.java:106)
        ... 3 more
    Caused by: ElasticsearchException[failure in bulk execution, only the first 100 failures are printed:
[8]: index [.marvel-es-data], type [cluster_info], id [nm4dj3ucSRGsdautV_GDDw], message [UnavailableShardsException[[.marvel-es-data][1] primary shard is not active Timeout: [1m], request: [shard bulk {[.marvel-es-data][1]}]]]]
        at org.elasticsearch.marvel.agent.exporter.local.LocalBulk.flush(LocalBulk.java:114)
        at org.elasticsearch.marvel.agent.exporter.ExportBulk$Compound.flush(ExportBulk.java:101)
        ... 3 more

0 个答案:

没有答案