[ 
https://issues.apache.org/jira/browse/IGNITE-28293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Zlenko updated IGNITE-28293:
---------------------------------
    Description: 
  PartitionReplicaListener.processOperationRequest contains a 15-branch 
if-else-if chain that dispatches on instanceof checks. This is hard to maintain 
and extend. ZonePartitionRaftListener already solved the same problem for
   RAFT commands using the CommandHandlers registry pattern.
                                                                                
                                                                                
                                                                 
  This ticket introduces the same approach for replica request handling.

> Introduce ReplicaRequestHandlers registry to replace if-else-if dispatch in 
> PartitionReplicaListener
> ----------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-28293
>                 URL: https://issues.apache.org/jira/browse/IGNITE-28293
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Ivan Zlenko
>            Assignee: Ivan Zlenko
>            Priority: Major
>              Labels: ignite-3
>
>   PartitionReplicaListener.processOperationRequest contains a 15-branch 
> if-else-if chain that dispatches on instanceof checks. This is hard to 
> maintain and extend. ZonePartitionRaftListener already solved the same 
> problem for
>    RAFT commands using the CommandHandlers registry pattern.
>                                                                               
>                                                                               
>                                                                      
>   This ticket introduces the same approach for replica request handling.



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

Reply via email to