Skip to content

Commit 43b989a

Browse files
committed
Make AllocatedPersistentTask.isCompleted() protected
This commit changes the isCompleted() method to be protected so that classes that extends AllocatedPersistentTask can use it. Related to elastic#30858
1 parent e33d107 commit 43b989a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/persistent/AllocatedPersistentTask.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void waitForPersistentTask(final Predicate<PersistentTasksCustomMetaData.
115115
persistentTasksService.waitForPersistentTaskCondition(persistentTaskId, predicate, timeout, listener);
116116
}
117117

118-
final boolean isCompleted() {
118+
protected final boolean isCompleted() {
119119
return state.get() == State.COMPLETED;
120120
}
121121

0 commit comments

Comments
 (0)