index-management icon indicating copy to clipboard operation
index-management copied to clipboard

Rollover on min_index_age clashes with Reindexing?

Open activeperception opened this issue 4 years ago • 2 comments

Hi,

We've setup ISM to rollover/transition based on min_index_age but we realized that reindexing clashes with it. After reindexing the new index gets a new creation date and the policy running on min_index_age gets obviously delayed.

Is there a workaround anyone can think of? AFAIK it's possible to override the creation date for an index in Elastic but not with Opendistro, maybe that would be enough to fix the issue.

Alternatively reindex could be changed to copy over, optionally, the original index metadata (creation time in this case).

Thanks for your help, Raffaele

activeperception avatar Apr 23 '21 14:04 activeperception

Hi @activeperception,

I am also experiencing the same issue, but I dont know what timestamp filed casue the problem. Can you explain a bit more, please?

IzekChen avatar Jan 06 '22 07:01 IzekChen

@IzekChen

It's not a timestamp you can control, it's the index creation date that gets reset when reindexing.

I couldn't find a workaround and, at the time, opted for not using the reindex api and, instead, wrote a script that scans through all documents and saves them again in place.

activeperception avatar Jan 06 '22 09:01 activeperception