[
https://issues.apache.org/jira/browse/IGNITE-16478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mirza Aliev updated IGNITE-16478:
---------------------------------
Description:
After investigation of https://issues.apache.org/jira/browse/IGNITE-16406 we
found a bug in {{PartitionListener#handleScanRetrieveBatchCommand}} when leader
is changed. In some case, {{cursorDesc.cursor().hasNext()}} returns false,
hence select operation return empty response, but should response several rows.
Investigation showed that cursor that is returned from
{{RocksDbPartitionStorage#scan}}
is inconsistent after leader changing because its hasNext returns unexpected
false.
Further investigation is needed.
was:
After investigation of https://issues.apache.org/jira/browse/IGNITE-16406 we
found a bug in {{PartitionListener#handleScanRetrieveBatchCommand}} when leader
is changed. In some case, {{cursorDesc.cursor().hasNext()}} return false, hence
select operation return empty response, but should response several rows.
Investigation showed that cursor that is returned from
{{RocksDbPartitionStorage#scan}}
is inconsistent after leader changing because its hasNext returns unexpected
false.
Further investigation is needed.
> RocksDB returns unexpected cursor.hasNext equals false after leader is changed
> ------------------------------------------------------------------------------
>
> Key: IGNITE-16478
> URL: https://issues.apache.org/jira/browse/IGNITE-16478
> Project: Ignite
> Issue Type: Bug
> Reporter: Mirza Aliev
> Priority: Major
> Labels: ignite-3
>
> After investigation of https://issues.apache.org/jira/browse/IGNITE-16406 we
> found a bug in {{PartitionListener#handleScanRetrieveBatchCommand}} when
> leader is changed. In some case, {{cursorDesc.cursor().hasNext()}} returns
> false, hence select operation return empty response, but should response
> several rows.
> Investigation showed that cursor that is returned from
> {{RocksDbPartitionStorage#scan}}
> is inconsistent after leader changing because its hasNext returns unexpected
> false.
> Further investigation is needed.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)