Closed
Description
When watching documents from the server using a cursor, this works fine if not reading to the end or the result size is below the batch size.
When fetching multiple bulks including the last, it seems the server closes the cursor itself and ArangoCursorImpl.close()
tries this again resulting in a server error. It seems the allowRetry
set to true
in the constructor leads to an unused close()
-call even it the result has no more documents.
If the enforced close is needed for retry, maybe passing the flag to the constructor directly from the options.getOptions().getAllowRetry()
in ArangoDatabaseImpl.createCursor()
would have less side effects.