Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #252 by communicating the error to the controller (following the pattern in the Kafka source).
When running in development with a basic job that plugs data from the nexmark source to a (badly configured) kafka sink, i.e.:
(where
process_string
simply ensures aString
is always returned, rather than anOption<String>
-- as mybadkaf
sink expects a raw string.)Arroyo seems to immediately attempt to go into a checkpoint, and eventually (after several minutes) times out through a failed
self.flush
. When this happens, the error is appropriately displayed in the UX in my setup:I am not familiar enough with the lifecycle to understand how to test the error code path in
self.process_element
given that the setup described seems to immediately go into a checkmark. I would appreciate guidance on how to do this, and will be happy to update the PR accordingly.I haven't added a test to catch this error/panic specifically, as from what I can tell the testing in connectors only confirms happy path.