# Ilm is creating an infinite initial index of {index\_name}-000001

**URL:** <https://discuss.elastic.co/t/ilm-is-creating-an-infinite-initial-index-of-index-name-000001/278254>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [July 9, 2021, 8:34am UTC](https://discuss.elastic.co/t/ilm-is-creating-an-infinite-initial-index-of-index-name-000001/278254 "2021-07-09T08:34:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stewart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stewart/32/88015_2.png) [@Stewart](https://discuss.elastic.co/u/Stewart)\
**Post date:** [July 9, 2021, 8:34am UTC](https://discuss.elastic.co/t/ilm-is-creating-an-infinite-initial-index-of-index-name-000001/278254/1 "2021-07-09T08:34:20Z")

</div>

I would like to ask an ILM related issue.

- The index is being deleted with ilm and it is working, but from a certain moment, the initial 0000001 index is created in the indices that are suddenly well rolled over, and there is only an empty index while ilm keeps creating new indexes.

**[Probable cause of the problem]**

- ” `no rollover info found for [my-index-000001] with alias [my-alias]` ” The number of problematic indices is increasing, all of them have doc count 0, and there are higher numbered indices that are being rolled over

```auto
java.lang.IllegalStateException: no rollover info found for [index-000001] with rollover target [index], the index has not yet rolled over with that target
	at org.elasticsearch.xpack.core.ilm.UpdateRolloverLifecycleDateStep.performAction(UpdateRolloverLifecycleDateStep.java:60)
	at org.elasticsearch.xpack.ilm.ExecuteStepsUpdateTask.execute(ExecuteStepsUpdateTask.java:98)
	at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:48)
	at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:691)
	at org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:313)
	at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:208)
	at org.elasticsearch.cluster.service.MasterService.access$000(MasterService.java:62)
	at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:140)
	at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:139)
	at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:177)
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:673)
	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:241)
	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:204)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:831)

```

- If there is a cluster failure or a problem with the node, there is a problem that RolloverInfo, one of the index metadata, cannot be received.
- If the index template is not created or the alias does not work, there is a problem that the RolloverInfo cannot be received if there is a problem with the running task.

**[How I tried to solve it]**

- Forcefully set ILM step to set-indexing-complete -\> Enter delete phase the next time you run ILM and it will be deleted. -\> The corresponding index is created again when inspecting ilm
- Forced ILM step to delete -\> Deleted immediately. -\> The corresponding index is created again when inspecting ilm
- Forced index to be deleted -\> The corresponding index is created again when inspecting ilm

my elastic version is 7.13.3. Has anyone experienced this issue?

---

<div class="post-metadata">

**Author:** ![Stewart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stewart/32/88015_2.png) [@Stewart](https://discuss.elastic.co/u/Stewart)\
**Post date:** [July 9, 2021, 8:37am UTC](https://discuss.elastic.co/t/ilm-is-creating-an-infinite-initial-index-of-index-name-000001/278254/2 "2021-07-09T08:37:26Z")

</div>

index template:

```auto
{
   "index": {
     "lifecycle": {
       "name": "logstash-policy",
       "rollover_alias": "test-index
     },
     "number_of_shards": "1"
   }
}

```

I made sure it wasn't fixed.

I just checked and the 000001 made by ILM is

```auto
test-index-000001{
   "aliases" : {
       "test-index" : { }
     },

```

it is like this,

Other normal indices are

```auto
test-index-000008{
   "aliases" : {
       "test-index" : {
"is_write_index" : false
}
     },

test-index-000007{
   "aliases" : {
       "test-index" : {
"is_write_index" : true
}
     },

```

This is how it is.  
But write\_index doesn't seem to have any effect. After updating that option , delete also found the same symptom.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 6, 2021, 8:37am UTC](https://discuss.elastic.co/t/ilm-is-creating-an-infinite-initial-index-of-index-name-000001/278254/3 "2021-08-06T08:37:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
