You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Valentin Kulichenko (Jira)" <ji...@apache.org> on 2022/01/17 00:19:00 UTC
[jira] [Updated] (IGNITE-15400) Raft bulk update command uses Set for collection of BinaryRow
[ https://issues.apache.org/jira/browse/IGNITE-15400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Valentin Kulichenko updated IGNITE-15400:
-----------------------------------------
Fix Version/s: 3.0.0-alpha5
(was: 3.0.0-alpha4)
> Raft bulk update command uses Set for collection of BinaryRow
> -------------------------------------------------------------
>
> Key: IGNITE-15400
> URL: https://issues.apache.org/jira/browse/IGNITE-15400
> Project: Ignite
> Issue Type: Bug
> Reporter: Andrey Mashenkov
> Priority: Major
> Labels: ignite-3
> Fix For: 3.0.0-alpha5
>
>
> InsertAllCommand and UpsertAllCommand uses Set structures for BinaryRow collection.
> BinaryRow object doen't override hashcode/equals methods, so HashSet can't be used here.
> Comparing rows on equality by only their key parts is incorrect in general case.
> So, an external Comparator must be used for that purpose.
> Let's use List implementation here as an uniqueness task should be resolved before a Command object creation or even before the Row serialization.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)