Open disaster37 opened 4 months ago
@opensearch-project/admin Please transfer this issue to https://github.com/opensearch-project/index-management/ repo.
I have opened on another issue on main opensearch project because of the main part of issue seems to be on Opensearch core project.
https://github.com/opensearch-project/OpenSearch/issues/16063
Is your feature request related to a problem? Please describe
When we use Opensearch stack to ingest logs, it's normal to use data stream index. More over, It's normal on this use case to have hot / warm / delete architecture. We keep 24h of logs on hot node, then we keep them in long time (30d) on warm node.
Because of logs are not always searched on warm node, we shrink index to avoid ta have to many shard on warm nodes. So on ISM (index state management) policy we have shrink step on warm phase. But this step not working as expected with data stream index. When it create new index (ths shrunken index), it break the lineage with data stream index. The new index is no more part of data stream index. And it break all the next step of ISM because of the new index is outdoor of the current policy.
Describe the solution you'd like
We expect that this ISM policy work out of the box.
As human understanding, we should it work like this:
Related component
Other
Describe alternatives you've considered
No response
Additional context
I think shrink step must be work like rollover step with data stream index. After look a little bit the code, I think the problem is not on ISM plugin, but on Opensearch core. Especially on server/src/main/java/org/opensearch/action/admin/indices/shrink package.