Skip to content

Commit 3c90f95

Browse files
committed
Make this message a bit more helpful
1 parent 8d983f5 commit 3c90f95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/PolicyStepsRegistry.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ public Step getStep(final IndexMetadata indexMetadata, final Step.StepKey stepKe
370370
cachedSteps.put(indexMetadata.getIndex(), Tuple.tuple(indexMetadata, s));
371371
// assert that the cache works as expected -- that is, if we put something into the cache,
372372
// we should get back the same thing if we were to invoke getStep again with the same arguments
373-
assert s == getCachedStep(indexMetadata, stepKey) : "policy step registry cache failed sanity check";
373+
Step found = getCachedStep(indexMetadata, stepKey);
374+
assert s == found : "policy step registry cache failed sanity check (expected [" + s + "], found [" + found + "])";
374375
}
375376
return s;
376377
}

0 commit comments

Comments
 (0)