-
Notifications
You must be signed in to change notification settings - Fork 745
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
Set custody subnets on tests #6382
Set custody subnets on tests #6382
Conversation
let node_id = peer_id_to_node_id(&peer_id).expect("convert peer_id to node_id"); | ||
let subnets = DataColumnSubnetId::compute_custody_subnets::<E>( | ||
node_id.raw(), | ||
spec.custody_requirement + 4, |
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.
spec.custody_requirement
did not fix the flakiness; the failure where cx.get_custodial_peers(self.column_index)
returns only a supernode still occurs. Based on my testing, spec.custody_requirement + 4
(or more) seems to fix it.
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.
Why not have two supernodes in the retry test + set_custody_subnets
in all tests for completeness?
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.
That makes sense to me💡 Thanks!
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.
Yeah the random generated peer ids doesn’t guarantee that peers are distributed across all subnets evenly. we need to either depend on more super nodes or have deterministic node ids in the test. In practice, LH will need to continuously maintain peers across all subnets.
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.
Looks good to me 👍 Thanks!
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 351dd6c |
Issue Addressed
Closes #6319
Proposed Changes
__add_connected_peer_testing_only
to set custody subnetssampling_with_retries
test to ensure that the node can retry