mirror of https://github.com/apache/druid.git
Fix bug in KillStalePendingSegments (#14961)
This commit is contained in:
parent
dec6a0aa14
commit
7871e633c6
|
@ -118,9 +118,7 @@ public class KillStalePendingSegments implements CoordinatorDuty
|
|||
DateTime earliestActiveTaskStart = DateTimes.nowUtc();
|
||||
DateTime latestCompletedTaskStart = null;
|
||||
for (TaskStatusPlus status : statuses) {
|
||||
if (status.getStatusCode() == null) {
|
||||
// Unknown status
|
||||
} else if (status.getStatusCode().isComplete()) {
|
||||
if (status.getStatusCode() != null && status.getStatusCode().isComplete()) {
|
||||
latestCompletedTaskStart = DateTimes.laterOf(
|
||||
latestCompletedTaskStart,
|
||||
status.getCreatedTime()
|
||||
|
|
Loading…
Reference in New Issue