Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

feat/node: send Ack on consensused message #1715

Merged

Conversation

maqi
Copy link
Member

@maqi maqi commented Jul 22, 2019

Closes #1666

@maqi maqi changed the title feat/node: send Ack on consensused message WIP feat/node: send Ack on consensused message Jul 22, 2019
@maqi maqi force-pushed the issue_1666_send_ack_on_msg_consensus branch from cf4b2a4 to dc8feb7 Compare July 22, 2019 10:51
Copy link
Contributor

@jeanphilippeD jeanphilippeD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seem reasonable.
A couple of comments.

src/states/elder/mod.rs Outdated Show resolved Hide resolved
src/states/elder/mod.rs Outdated Show resolved Hide resolved
@maqi maqi force-pushed the issue_1666_send_ack_on_msg_consensus branch from dc8feb7 to c299256 Compare July 22, 2019 14:22
@maqi maqi force-pushed the issue_1666_send_ack_on_msg_consensus branch 3 times, most recently from 4d608da to 8f4bda5 Compare July 24, 2019 10:05
@maqi maqi changed the title WIP feat/node: send Ack on consensused message feat/node: send Ack on consensused message Jul 24, 2019
@maqi maqi requested a review from fizyk20 July 24, 2019 10:05
src/chain/chain.rs Outdated Show resolved Hide resolved
@jeanphilippeD
Copy link
Contributor

Looks good, a minor comment

@maqi maqi force-pushed the issue_1666_send_ack_on_msg_consensus branch from 8f4bda5 to f000e7a Compare July 24, 2019 10:40
jeanphilippeD
jeanphilippeD previously approved these changes Jul 24, 2019
Copy link
Contributor

@jeanphilippeD jeanphilippeD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

fizyk20
fizyk20 previously approved these changes Jul 24, 2019
Copy link
Contributor

@fizyk20 fizyk20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - just one comment that's not clear to me, but it might just be me, so not a blocker.

@@ -59,6 +59,7 @@ pub trait Approved: Relocated {
fn handle_neighbour_merge_event(&mut self) -> Result<(), RoutingError>;

/// Handles an accumulated `SectionInfo` event.
/// If triggered during initial, an ack message shall not be sent out.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you rephrase the comment? I'm not sure what "triggered during initial" means.

@maqi maqi dismissed stale reviews from fizyk20 and jeanphilippeD via 925c5f6 July 24, 2019 12:45
@maqi maqi force-pushed the issue_1666_send_ack_on_msg_consensus branch 2 times, most recently from 925c5f6 to 3e8a934 Compare July 24, 2019 14:57
fizyk20
fizyk20 previously approved these changes Jul 24, 2019
jeanphilippeD
jeanphilippeD previously approved these changes Jul 25, 2019
@maqi maqi dismissed stale reviews from jeanphilippeD and fizyk20 via 627738d July 25, 2019 09:29
@maqi maqi force-pushed the issue_1666_send_ack_on_msg_consensus branch from 627738d to 4ca73ef Compare July 25, 2019 10:42
jeanphilippeD
jeanphilippeD previously approved these changes Jul 25, 2019
As the Ack will be a multi-cast message sent among section members,
this could cause a 10-15% performance drop on the churn tests. As
those tests invloves lost of membership change which will result in
many section_info updates.
Also, this commit contains a test requiring a setup of section
splitting, which cost some time to complete normally.
@maqi maqi force-pushed the issue_1666_send_ack_on_msg_consensus branch from 4ca73ef to dec5b3b Compare July 25, 2019 11:50
Copy link
Contributor

@jeanphilippeD jeanphilippeD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@jeanphilippeD jeanphilippeD merged commit 321b25a into maidsafe:fleming Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

On consensus on a message, Send AckMessage
3 participants