-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore errors when Sink or Extractor is forcibly canceled #1992
Ignore errors when Sink or Extractor is forcibly canceled #1992
Conversation
self._logger.warning( | ||
f"Sink did not stop within {CANCELATION_TIMEOUT} seconds of cancelation, force-canceling the task." | ||
) | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to re-raise here, if error is not ForceCancelledError or self._canceled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix!
…) (#1996) Co-authored-by: Chenhui Wang <[email protected]>
Closes #1985
What's the change
warning
when a sync job is forcibly canceledSink
orExtractor
class if theSink
orExtractor
object is forcibly canceledWhy the change
In the last release, we Forcibly cancel a sync job after waiting for 5 seconds. This should not be treated as
ERROR
, therefore we want to log it atwarning
level.When we forcibly cancel the
Sink
orExtractor
task, it will throw aForceCanceledError
. But sometimes there can be other errors thrown due to task cancellation, and be caught first. Before we log those errors ascritical
, we want to check if the task is forcibly canceled. If so, we will ignore those errors, and instead log awarning
message that the task is forcibly canceled.Checklists
Pre-Review Checklist
v7.13.2
,v7.14.0
,v8.0.0
)