Skip to content

Cursor with multiple batches is closed twice #533

Closed
@aburmeis

Description

@aburmeis

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.

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() in ArangoDatabaseImpl.createCursor() would have less side effects.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions