Dangled indices判定条件

我看了下 dangling indices
里面有这样一句话:
.....
any shards stored in its local data directory directory which do not already exist in the cluster ...

比较好奇是怎么判断不存在的?

es 日志说这索引是dangling的,然后自动导入了:

[2018-03-14T12:33:11,873][WARN ][o.e.c.m.MetaDataIndexUpgradeService] [master_183_97] [malfunctionlog-20171121/DtbhNG-uS8m8uoNKEL0pDA] ignoring unknown index setting: [index.store.throttle.max_bytes_per_sec] with value [30mb]; archiving
[2018-03-14T12:33:11,875][INFO ][o.e.g.LocalAllocateDangledIndices] [master_183_97] auto importing dangled indices [[malfunctionlog-20171121/DtbhNG-uS8m8uoNKEL0pDA]/CLOSE] from [{data_188_54}{YYokJS_-RACuV5LDY94H5Q}{bO723BNsTveimfmnWa1PVQ}{10.8.188.54}{10.8.188.54:9300}{ml.max_open_jobs=10, ml.enabled=true}]
[2018-03-14T12:33:15,385][WARN ][o.e.m.j.JvmGcMonitorService] [master_183_97] [gc][7384835] overhead, spent [527ms] collecting in the last [1s]

但是我get info是closed的

GET _cat/indices
...
      close malfunctionlog-20171121                       DtbhNG-uS8m8uoNKEL0pDA     
...

上面写的很清楚了,当一个节点加入集群的时候,如果集群里面不存在这个索引,但是本地目录里面有这个索引,就会认为其是一个dangling索引,然后会导入进去。具体这个索引是 close 和 open,不在判断的条件里面的。

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.