Skip to content

Commit

Permalink
Reduce waiting time for head restart (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
msizov authored May 21, 2024
1 parent 1a82566 commit 8f8d89a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ abstract class AbstractHead @JvmOverloads constructor(
// close internal stream if upstream is finished, otherwise it gets stuck,
// but technically it should never happen during normal work, only when the Head
// is stopping
if (it == SignalType.ON_ERROR && !stopping) {
if ((it == SignalType.ON_ERROR || it == SignalType.CANCEL || it == SignalType.ON_COMPLETE) && !stopping) {
log.warn("Received signal $upstreamId $it unexpectedly - restart head")
lastHeadUpdated = 0L
} else {
Expand Down

0 comments on commit 8f8d89a

Please sign in to comment.