Skip to content

Error Listener for Bulk Callers #1252

@llinggit

Description

@llinggit

https://project.marklogic.com/jira/browse/JAVA-172

Copied from Jira as below.

Whether the bulk caller has a single CallContext or multiple CallContexts, if the call returns an error and the consumer has set an error listener, call the error listener with

the retry number for the call (starting at zero)
the Throwable for the call error
the CallContext for the call
any inputs to the call
Based on the returned ErrorDisposition, either

retry the call (and increment the retry number if the call throws another error)
skip the call but continue to use the CallContext
stop all calls
If the error listener throws an error, the bulk caller stops all calls.

So we can address your issue, please include the following:

Version of MarkLogic Java Client API

See Readme.txt

Version of MarkLogic Server

See admin gui on port 8001 or run xdmp:version() in Query Console - port 8000)

Java version

Run java -version

OS and version

For MAC, run sw_vers.
For Windows, run systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
For Linux, run cat /etc/os-release and uname -r

Input: Some code to illustrate the problem, preferably in a state that can be independently reproduced on our end

Actual output: What did you observe? What errors did you see? Can you attach the logs? (Java logs, MarkLogic logs)

Expected output: What specifically did you expect to happen?

Alternatives: What else have you tried, actual/expected?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions