[
https://issues.apache.org/jira/browse/IGNITE-28023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vyacheslav Koptilin updated IGNITE-28023:
-----------------------------------------
Component/s: transactions ai3
> Improve code and logging on client's transaction handling
> ---------------------------------------------------------
>
> Key: IGNITE-28023
> URL: https://issues.apache.org/jira/browse/IGNITE-28023
> Project: Ignite
> Issue Type: Bug
> Components: transactions ai3
> Reporter: Mikhail Efremov
> Priority: Major
>
> *Description*
> Code in {{DirectTxUtils}} is hard to read and analyse and in particular logs
> in {{#writeTx}} in {{else}} case on {{tx0.channel() != out.clientChannel()}}
> doesn't provide any context why this happens and why we can not retry this tx
> automatically. {{WriteContext}} violates incapsulation and it's not clear for
> example why not marked as {{@Nullable}} {{firstReqFut}} field inside the
> {{#writeTx}} method is checked on {{null}} value.
> *Motivation*
> We should maintain code clean, readable and explainable, logs should be
> better for user.
> *Definition of Done*
> # Code is refactored, incapsulation should be improved.
> # Logs are enriched with a context of the situation.
> # If possible we should automatically retry at least implicit transactions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)