[
https://issues.apache.org/jira/browse/IGNITE-24017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Evgeny Stanilovsky reassigned IGNITE-24017:
-------------------------------------------
Assignee: Evgeny Stanilovsky
> Sql. StorageScanNode SubscriberImpl onNext can be called after subscription
> is cancelled
> ----------------------------------------------------------------------------------------
>
> Key: IGNITE-24017
> URL: https://issues.apache.org/jira/browse/IGNITE-24017
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Reporter: Maksim Zhuravkov
> Assignee: Evgeny Stanilovsky
> Priority: Major
> Labels: ignite-3
>
> When a ScanStorageNode cancels its subscription by calling cancel, it is
> possible that a concurrent Subscriber receives a call to onNext:
> {code:java}
> // Rewind call
> // Buffer is cleared
> inBuff.clear();
> if (activeSubscription != null) {
> // Subscription is cancelled but it is possible for a subscriber to call
> onNext and add rows to inBuff
> // but it is not what we want because we do not want for a subsequent scan
> to return results from a previous one.
> activeSubscription.cancel();
> activeSubscription = null;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)