我正在使用安装在centos 7中的elasticsearch 2.4.6,并且工作正常。但是突然之间,同样的事情开始变得奇怪了。
我最初创建了一个索引,现在删除索引时,它会确认,但是如果再次删除,它仍会确认何时应抛出未找到索引
的错误。测试服务器工作正常,如下所示:-
[root@localhost ~]# curl -XDELETE 'http://localhost:9200/taxsutra'
{"acknowledged":true}
[root@localhost ~]# curl -XDELETE 'http://localhost:9200/taxsutra'
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"taxsutra","index":"taxsutra"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"taxsutra","index":"taxsutra"},"status":404}
但是在生产中,结果如下所示,这是不正确的:-
[root@server-03 ~]# curl -XDELETE 'http://localhost:9200/taxsutra'
{"acknowledged":true}
[root@server-03 ~]# curl -XDELETE 'http://localhost:9200/taxsutra'
{"acknowledged":true}
类似地,即使在生产服务器中创建索引时,输出也会显示索引即使不存在也存在。
感谢帮助。