Index Lifecycle Allocation Routed Step failing with NullPtrException

We are running an ElasticSearch 6.8.8 cluster.

We just implemented ILM for our indexes.

Here is our ILM Policy :

      "policy": {
          "phases": {
              /* Hot phase - Resync Priority 100 */
              "hot": {
                  "min_age": "0ms",
                  "actions": {
                      "set_priority": {
                          "priority": 100
              /* Warm phase - Resync Priority 50 */
              "warm": {
                  "min_age": "30d",
                  "actions": {
                      "set_priority": {
                          "priority": 50
              /* Cold phase - Resync Priority 0 - Apply storageclass = mass */
              "cold": {
                  "min_age": "90d",
                  "actions": {
                      "allocate": {
                          "require": {
                              "storageclass": "mass"
                      "set_priority": {
                          "priority": 0

But we are facing a NullPointer Exception on AllocationRoutedStep

Here is the stacktrace :

	at org.elasticsearch.xpack.core.indexlifecycle.AllocationRoutedStep.isConditionMet(
	at org.elasticsearch.xpack.indexlifecycle.ExecuteStepsUpdateTask.execute(
	at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(
	at org.elasticsearch.cluster.service.MasterService.executeTasks(
	at org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(
	at org.elasticsearch.cluster.service.MasterService.runTasks(
	at org.elasticsearch.cluster.service.MasterService$
	at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(
	at org.elasticsearch.cluster.service.TaskBatcher$
	at org.elasticsearch.common.util.concurrent.ThreadContext$
	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(
	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$

Hope this can be fixed or already fixed in 6.8.x relelease...


We tried to upgrade to 6.8.12 but error remain the same.

if this happens on the latest 6.8 release (as you seem to indicate), please open a github issue. You might be able to pinpoint this further by reducing your policy first and have fewer actions/phases in there.

all other steps are fine (hot/warm) only got the error on cold step when trying to relocate data.
i'll open an issue.

here it is.

1 Like

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