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
Conversation
6255ae1
to
c493efd
Compare
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 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 = { |
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.
can we extract it to some common method? Or is it tricky because of multiinheritance?
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.
Extracted to helper trait.
...link/avro-util/src/test/scala/pl/touk/nussknacker/engine/avro/RecodingExceptionHandler.scala
Outdated
Show resolved
Hide resolved
...ess/src/main/scala/pl/touk/nussknacker/engine/process/compiler/CompiledProcessWithDeps.scala
Show resolved
Hide resolved
...ess/src/main/scala/pl/touk/nussknacker/engine/process/compiler/CompiledProcessWithDeps.scala
Show resolved
Hide resolved
ab0fbf1
to
5f6ea75
Compare
Report events that could not be encoded to Avro.