Skip to content

Comments

GH-3755 Cancelling query iterators#3762

Merged
afs merged 5 commits intoapache:mainfrom
afs:gh3755-queryiterators
Feb 21, 2026
Merged

GH-3755 Cancelling query iterators#3762
afs merged 5 commits intoapache:mainfrom
afs:gh3755-queryiterators

Conversation

@afs
Copy link
Member

@afs afs commented Feb 19, 2026

GitHub issue resolved #3755

  • State the cancel() contract - the work to stop an iterator happens on the query execution thread.
  • Make QueryIteratorBase.requestCancel() optional. Mostly, using the usual framework will work.

There is no change to passing down cancellations although this might be desirable to ensure consistent behaviour long term.

A few QueryIterators do not use QueryIteratorBase:

Test use only - TestQueryIterSort

  • QueryIteratorCallback

Service enhancer:

  • QueryIterSlottedBase
    • QueryIterServiceBulk
    • QueryIterWrapperCache
    • RequestExecutor

  • Key commit messages start with the issue number (GH-xxxx)

By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.

@afs afs force-pushed the gh3755-queryiterators branch from 84f09d1 to 062013a Compare February 21, 2026 08:43
@afs afs merged commit 504143f into apache:main Feb 21, 2026
3 checks passed
@afs afs deleted the gh3755-queryiterators branch February 21, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QueryIterator concurrency on close/cancelRequest

1 participant