未验证 提交 1d5a0b0f 编写于 作者: G Gao Hongtao 提交者: GitHub

Format index name with namespace (#4758)

* Format index name with namespace
Signed-off-by: NGao Hongtao <hanahmily@gmail.com>

* Use another variable to compare index name
Signed-off-by: NGao Hongtao <hanahmily@gmail.com>
Co-authored-by: wu-sheng's avatar吴晟 Wu Sheng <wu.sheng@foxmail.com>
上级 b5c9a64f
......@@ -67,7 +67,8 @@ public class HistoryDeleteEsDAO extends EsDAO implements IHistoryDeleteDAO {
client.deleteByIndexName(prepareDeleteIndex);
}
String latestIndex = TimeSeriesUtils.latestWriteIndexName(model);
if (!leftIndices.contains(latestIndex)) {
String formattedLatestIndex = client.formatIndexName(latestIndex);
if (!leftIndices.contains(formattedLatestIndex)) {
client.createIndex(latestIndex);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册