Closed hapeka72 closed 2 months ago
Thanks for the report @hapeka72 , we'll look into this today.
Confirming that your finding is correct. We'll have a fix for this in the next release with tests to ensure that awaitCompletion
is honoring the user-defined timeout correctly.
Perfect, thank you!
This will be in the 6.6.0 release this week.
Hi,
the conversion of the timeout in this line is wrong: https://github.com/marklogic/java-client-api/blob/b68bab95f566c48efe37bda76de531cc7f21924f/marklogic-client-api/src/main/java/com/marklogic/client/datamovement/impl/WriteBatcherImpl.java#L890
It should be like this:
long duration = TimeUnit.MILLISECONDS.convert(timeout, unit);