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
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.
The text was updated successfully, but these errors were encountered:
aburmeis
changed the title
Cursor with multiple batches is closed duplicate
Cursor with multiple batches is closed twice
Jan 2, 2024
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 theallowRetry
set totrue
in the constructor leads to an unusedclose()
-call even it the result has no more documents.Relates to DE-511 #505
If the enforced close is needed for retry, maybe passing the flag to the constructor directly from the
options.getOptions().getAllowRetry()
inArangoDatabaseImpl.createCursor()
would have less side effects.The text was updated successfully, but these errors were encountered: