Format index name with namespace (#4758)
* Format index name with namespace Signed-off-by: Gao Hongtao <hanahmily@gmail.com> * Use another variable to compare index name Signed-off-by: Gao Hongtao <hanahmily@gmail.com> Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
This commit is contained in:
parent
b5c9a64fa9
commit
1d5a0b0f1a
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue