[ 
https://issues.apache.org/jira/browse/IGNITE-28357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18069561#comment-18069561
 ] 

Dmitry Werner commented on IGNITE-28357:
----------------------------------------

The issue is that {{IgniteTxKey}} cannot be safely used as a key in a {{Map}} 
during deserialization, because its {{hashCode}} may be invoked before 
{{finishUnmarshal}} is completed.

To fix this, we need to avoid using {{IgniteTxKey}} as a map key at the 
{{readMap}} stage and instead postpone map construction until after 
unmarshalling is fully finished, or use a structure that does not rely on 
{{hashCode}} during deserialization.

> Remove redundant collections conversion logic from TxLocksResponse
> ------------------------------------------------------------------
>
>                 Key: IGNITE-28357
>                 URL: https://issues.apache.org/jira/browse/IGNITE-28357
>             Project: Ignite
>          Issue Type: Task
>            Reporter: Ilya Shishkov
>            Assignee: Dmitry Werner
>            Priority: Minor
>              Labels: ise
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {{@Order}} annotation can be used for fields:
> # nearTxKeyLocks (remove nearTxKeysArr + locksArr)
> # txKeys (remove txKeysArr)



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

Reply via email to