We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45ad056 commit 68c42fcCopy full SHA for 68c42fc
server/src/main/java/org/elasticsearch/persistent/PersistentTasksCustomMetaData.java
@@ -366,7 +366,7 @@ public Status getStatus() {
366
* to a new executor node and the status hasn't been updated then the task status is stale.
367
*/
368
public boolean isCurrentStatus() {
369
- return allocationIdOnLastStatusUpdate == allocationId;
+ return allocationIdOnLastStatusUpdate != null && allocationIdOnLastStatusUpdate == allocationId;
370
}
371
372
@Override
0 commit comments