Skip to content
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

Exception handler accessible via custom node context #1321

Merged
merged 8 commits into from Dec 8, 2020

Conversation

jedrz
Copy link
Contributor

@jedrz jedrz commented Nov 16, 2020

Report events that could not be encoded to Avro.

@jedrz jedrz force-pushed the exception-handler branch 8 times, most recently from 6255ae1 to c493efd Compare November 17, 2020 09:56
@jedrz jedrz marked this pull request as ready for review November 18, 2020 11:12
Copy link
Collaborator

@mproch mproch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added some comments, I also wonder how to make it more comprehensible what and when is/should be opened/closed in CompiledProcessWithDeps - maybe some comments?

private val exceptionHandlerPreparer = flinkNodeContext.exceptionHandlerPreparer
private var exceptionHandler: FlinkEspExceptionHandler = _

override def open(parameters: Configuration): Unit = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we extract it to some common method? Or is it tricky because of multiinheritance?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracted to helper trait.

@jedrz jedrz merged commit 6c4a789 into TouK:staging Dec 8, 2020
@jedrz jedrz deleted the exception-handler branch December 8, 2020 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants