Skip to content

Commit 3f35a2b

Browse files
author
David Roberts
committed
Improve comment and assertion
1 parent a7c91e9 commit 3f35a2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/dataframe/transforms/DataFrameTransformStats.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ public static State fromComponents(DataFrameTransformTaskState taskState, Indexe
258258
return FAILED;
259259
} else {
260260

261-
// Note: indexer state CAN be null if the task state is stopped or failed
261+
// If we get here then the task state must be started, and that means we should have an indexer state
262+
assert(taskState == DataFrameTransformTaskState.STARTED);
262263
assert(indexerState != null);
263264

264265
switch (indexerState) {

0 commit comments

Comments
 (0)