Konstantin Orlov created IGNITE-28460:
-----------------------------------------

             Summary: Sql. Choose commit partition from list of involved 
partitions
                 Key: IGNITE-28460
                 URL: https://issues.apache.org/jira/browse/IGNITE-28460
             Project: Ignite
          Issue Type: Bug
          Components: sql ai3
            Reporter: Konstantin Orlov
            Assignee: Konstantin Orlov


Historically, commit partition has been chosen randomly among all partitions of 
table:
{code}
tx.assignCommitPartition(new ZonePartitionId(zoneId, 
ThreadLocalRandom.current().nextInt(partsCnt)));
{code}

But when partition pruning came into play, partition chosen became not always 
the one that required by query execution. For instance, if after partition 
pruning only one partition remains (let say partition with id=42), then 
partition with id=0 will be assigned as commit partition.

We need to choose commit partition amongst the ones involved.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to