You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
As a developer
I want to TITLE
So that I can handle the exception appropriately and continue to write the next batch.
I have ran into a Batch error where I have a conflicting update error (the batch of documents have two docs with the same URI). Unfortunately it causes the whole program to crash. I would like to take note and log the error but I would like the program to continue.
I believe it is just adding a throws statement on the BatchWriter.write() method.
The text was updated successfully, but these errors were encountered:
Looking into this a bit more, one option would be to create a try/catch in RestBatchWriter. I'm approaching this from MarkLogicItemWriter using this service. Who should handle the exception?
I think a Listener interface is appropriate here. I thought that ThreadPoolTaskExecutor had such a thing - it does, but it requires attaching a FailureCallback to the ListenableFuture that's returned. Since subclasses of BatchWriterSupport aren't guaranteed to be doing async writes, I think a listener interface is appropriate here.
As a developer
I want to TITLE
So that I can handle the exception appropriately and continue to write the next batch.
I have ran into a Batch error where I have a conflicting update error (the batch of documents have two docs with the same URI). Unfortunately it causes the whole program to crash. I would like to take note and log the error but I would like the program to continue.
I believe it is just adding a throws statement on the BatchWriter.write() method.
The text was updated successfully, but these errors were encountered: