我看了下 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
...