fix: 无效的 es 报 500

pull/6617/head
xinwen 2021-08-10 17:53:34 +08:00 committed by 老广
parent 1942fc5a51
commit 0f0f0b6e4f
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ class CommandStore():
self.is_new_index_type()
def is_new_index_type(self):
if not self.ping(timeout=3):
return
# 检测索引是不是新的类型
data = self.es.indices.get_mapping(self.index)
try: