You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Sergey Uttsel (Jira)" <ji...@apache.org> on 2022/10/07 13:56:00 UTC
[jira] [Updated] (IGNITE-17759) Need to pass commitTableId and commitPartitionId to MvPartitionStorage#addWrite
[ https://issues.apache.org/jira/browse/IGNITE-17759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Uttsel updated IGNITE-17759:
-----------------------------------
Description:
Currently when PartitionListener invokes MvPartitionStorage#addWrite it passes
UUID.randomUUID() as commitTableId and 0 as commitPartitionId. Need pass appropriate values.
For this:
# In InternalTableImpl#enlistInTx need to save (UUID tableId, int partId, String groupId) of the first operation to the transaction.
# In InternalTableImpl#enlistInTx need to pass commitTableId and commitPartitionId into ReplicaRequest (ReadWriteSingleRowReplicaRequest, ReadWriteSwapRowReplicaRequest, ReadWriteMultiRowReplicaRequest)
# In PartitionReplicaListener need to pass commitTableId and commitPartitionId from ReplicaRequest to UpdateCommand and UpdateAllCommand.
was:
Currently when PartitionListener invokes MvPartitionStorage#addWrite it passes
UUID.randomUUID() as commitTableId and 0 as commitPartitionId. Need pass appropriate values.
> Need to pass commitTableId and commitPartitionId to MvPartitionStorage#addWrite
> -------------------------------------------------------------------------------
>
> Key: IGNITE-17759
> URL: https://issues.apache.org/jira/browse/IGNITE-17759
> Project: Ignite
> Issue Type: Improvement
> Reporter: Sergey Uttsel
> Priority: Major
> Labels: ignite-3, transaction3_ro
>
> Currently when PartitionListener invokes MvPartitionStorage#addWrite it passes
> UUID.randomUUID() as commitTableId and 0 as commitPartitionId. Need pass appropriate values.
>
> For this:
> # In InternalTableImpl#enlistInTx need to save (UUID tableId, int partId, String groupId) of the first operation to the transaction.
> # In InternalTableImpl#enlistInTx need to pass commitTableId and commitPartitionId into ReplicaRequest (ReadWriteSingleRowReplicaRequest, ReadWriteSwapRowReplicaRequest, ReadWriteMultiRowReplicaRequest)
> # In PartitionReplicaListener need to pass commitTableId and commitPartitionId from ReplicaRequest to UpdateCommand and UpdateAllCommand.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)