ASTERIXDB-1145: Fix error propagating in operators/connectors:
1. When an AbstractUnarySourceOperator instance runs into an exception, it should call writer.fail() first and then throw the exception.
2. An IFrameWriter.fail() implementation should not throw yet-another exception, instead, it should just propgate
the failure to its downstream operators and optionally set a "failed" state so that in the close()/nextFrame() method
it can potentially behave differently from usual close()/nextFrame().
Change-Id: Ifb538155423687c4aa01a0485adeaab87f291547
Reviewed-on: https://asterix-gerrit.ics.uci.edu/491
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <tillw@apache.org>
5 files changed