[jira] [Updated] (RATIS-179) Improve the log message in leader election and refactor the tests

2017-12-23 Thread Tsz Wo Nicholas Sze (JIRA)

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

Tsz Wo Nicholas Sze updated RATIS-179:
--
Attachment: r179_20171223.patch

r179_20171223.patch: adds cluster.shutdown().

> Improve the log message in leader election and refactor the tests 
> --
>
> Key: RATIS-179
> URL: https://issues.apache.org/jira/browse/RATIS-179
> Project: Ratis
>  Issue Type: Improvement
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Tsz Wo Nicholas Sze
> Attachments: r179_20171222.patch, r179_20171223.patch
>
>
> Log message changes:
> - when a server changes role, log also the term and the reason.
> - when a server changes the recognized Leader, log also the term and the 
> reason.
> Test refactoring:
> - Move the leader election tests from RaftBasicTests to a new class since 
> RaftBasicTests is getting large.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (RATIS-179) Improve the log message in leader election and refactor the tests

2017-12-22 Thread Tsz Wo Nicholas Sze (JIRA)

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

Tsz Wo Nicholas Sze updated RATIS-179:
--
Attachment: r179_20171222.patch

r179_20171222.patch: 1st patch

> Improve the log message in leader election and refactor the tests 
> --
>
> Key: RATIS-179
> URL: https://issues.apache.org/jira/browse/RATIS-179
> Project: Ratis
>  Issue Type: Improvement
>Reporter: Tsz Wo Nicholas Sze
>Assignee: Tsz Wo Nicholas Sze
> Attachments: r179_20171222.patch
>
>
> Log message changes:
> - when a server changes role, log also the term and the reason.
> - when a server changes the recognized Leader, log also the term and the 
> reason.
> Test refactoring:
> - Move the leader election tests from RaftBasicTests to a new class since 
> RaftBasicTests is getting large.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)