-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-647: HOTFIX: Prevent duplication of records of connection-progress #213
Conversation
…previous pass targets
…eer address present in a different connection progress
…part of previous pass targets" This reverts commit afd43da.
…or and GossipHandler
@@ -63,6 +63,7 @@ trait GossipHandler: NamedType + Send /* Send because lazily-written tests requi | |||
database: &mut NeighborhoodDatabase, | |||
agrs: Vec<AccessibleGossipRecord>, | |||
gossip_source: SocketAddr, | |||
peer_addrs: &[IpAddr], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you think of a better name than peer_addrs
? When you're thinking about Gossip, you're probably not thinking about connection progress messages, and it's difficult to understand what a peer might be in this context. There's cpm_recipient
right below it; maybe these two parameters could be named similarly to make their association clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used the name connection_progress_peers
. I think it's conveying the correct idea.
node/src/neighborhood/mod.rs
Outdated
msg.peer_addr | ||
); | ||
Err(e) => { | ||
trace!(self.logger, "{}", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this error specific enough to be able to track down if we see it in the log? Should an identifying string be added so that a codebase text search can lead us here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also wanted to add some string to this trace log before raising the PR but somehow, I didn't. Later, when you added this comment, I got a bit excited to rephrase these logs.
I've used this prefix - "Found unnecessary connection progress message"
.
Now, it will be easier to find the log inside our codebase.
* GH-647: rename peers_addrs to connection_progress_peers * GH-647: provide the accurate name inside the constructor of System in the test * GH-647: reword the trace logs for the unnecessary connection progress * GH-647: use a unique number to generate a unique socket address for peer 2 * GH-647: add review changes for overall_connection_status.rs * GH-647: add connection_progress_peers as a param in the mock (#216)
No description provided.