reele commented on issue #16976:
URL:
https://github.com/apache/dolphinscheduler/issues/16976#issuecomment-2608937192
>If the event is not expired then should use expire time to compare them, if
the event is already expired then should use create time to compare them.
```
/* PriorityQueue.class */
private void siftUpComparable(int var1, E var2) {
Comparable var3;
int var4;
for(var3 = (Comparable)var2; var1 > 0; var1 = var4) {
var4 = var1 - 1 >>> 1;
Object var5 = this.queue[var4];
if (var3.compareTo(var5) >= 0) {
break;
}
this.queue[var1] = var5;
}
this.queue[var1] = var3;
}
```
it seems only affect to new element to offer, if event is expired, new event
will also append to the end of expired event,i think use expired time to
compare is still working.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]