alibaba / alibaba/DataX

elasticsearchwriter的aliasMode参数不支持es6以上版本

Open
#610 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

aliasMode设置为exclusive时,elasticsearchwriter会先查出当前别名关联的索引,然后一一删除。
但是代码中使用GET /{alias_name}/aliases 获取别名下的所有索引:见jest-common:2.4.0中类GetAliases.class22行super.buildURI() + "/_aliases";这种方式elasticsearch6已经不支持了,建议使用GET /*/_alias/{alias_name}。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at jest-common:2.4.0's GetAliases.class, especially line 22, and trace the elasticsearchwriter aliasMode=exclusive path that queries the current alias indices. Verify the alias lookup against Elasticsearch 6+ behavior and confirm it still supports the subsequent index deletion flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, java
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.