Skip to content
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

Include shred version in gossip #7777

Merged
merged 1 commit into from
Jan 14, 2020
Merged

Include shred version in gossip #7777

merged 1 commit into from
Jan 14, 2020

Conversation

mvines
Copy link
Member

@mvines mvines commented Jan 13, 2020

Nodes with differing shred versions will not ingest each other's shreds, so ignore tvu/rpc nodes on gossip with differing shred versions when --wait-for-supermajority validator argument is used.

sagar-solana
sagar-solana previously approved these changes Jan 14, 2020
Copy link
Contributor

@sagar-solana sagar-solana left a comment

Choose a reason for hiding this comment

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

Too much broke when you added the filter logic?

@mvines
Copy link
Member Author

mvines commented Jan 14, 2020

Too much broke when you added the filter logic?

Yeah, 🤕, so I scaled this back a little. Still trying to figure out what test_split_messages_packet_size is doing and why it's broken.

@sagar-solana
Copy link
Contributor

test_split_messages_packet_size is badly named(sorry). It basically tries to make sure that if a single CrdsValue is so large that there isn't room to wrap it with a Vec and transmit it, then split_gossip_messages should drop that item. Looks like for some reason it's not dropping it. Possibly a bug in split_gossip_messages?

@@ -2589,7 +2590,7 @@ mod tests {
}));

let mut i = 0;
while value.size() < desired_size {
while value.size() <= desired_size {
Copy link
Member Author

Choose a reason for hiding this comment

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

<= instead of < got test_split_messages_packet_size() working again.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah okay, so the extra 2 bytes made it match exactly. I think that should be fine.

@codecov
Copy link

codecov bot commented Jan 14, 2020

Codecov Report

Merging #7777 into master will decrease coverage by <.1%.
The diff coverage is 78.9%.

@@           Coverage Diff            @@
##           master   #7777     +/-   ##
========================================
- Coverage    81.8%   81.8%   -0.1%     
========================================
  Files         241     241             
  Lines       51075   51023     -52     
========================================
- Hits        41817   41759     -58     
- Misses       9258    9264      +6

This was referenced May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants