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

Tsz Wo Nicholas Sze edited comment on RATIS-252 at 7/10/18 5:25 PM:
--------------------------------------------------------------------

[~ljain], I like to clarify:
 # do you think that the patch is very complicated and it deserves a 
complicated test? Or,
 # do you think that your suggestion is a very simple test?

I am open for adding more tests. However, I doubt if it is worth the effort, 
provided that  TestArithmetic already is able to show the correctness of the 
patch.


was (Author: szetszwo):
[~ljain], I like to clarify:
# do you think that the patch is very complicated and it deserves a complicated 
test?  Or,
# do you think that your suggestion is a very simple test?

I am open for adding more tests. However, I doubt if it is worth the effort.

> Add an API for state machine to determining server role
> -------------------------------------------------------
>
>                 Key: RATIS-252
>                 URL: https://issues.apache.org/jira/browse/RATIS-252
>             Project: Ratis
>          Issue Type: New Feature
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>            Priority: Major
>         Attachments: r252_20180710.patch
>
>
> In some applications, the state machine may update external database/systems 
> while applying a transaction.  When there are multiple servers in a raft 
> group, all servers will submit the same update to the external systems.  It 
> unnecessarily overloads the external system.  Ideally, only the leader should 
> send the update and the followers should not.
> In this JIRA, we provide an API so that the state machine can query its 
> server role in order to determine if it should send the update.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to