Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Make the sync_cycle_from_offline_to_syncing_to_offline test non flaky #4644

Merged
merged 1 commit into from
Jan 16, 2020

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Jan 16, 2020

This test starts by waiting for nodes 0 and 1 to be major-syncing.

However what I think sometimes happens is that the background task fully syncs these nodes and that therefore is_major_syncing returns false. The test then freezes because it's still waiting for the major syncing to happen even though it's already finished.

Since this test is entirely single-threaded, it's still unclear to Arkadiy and me why this happens only from time to time. EDIT: probably because libp2p 0.14 spawns connection tasks on a thread pool no matter what

@tomaka tomaka added the A0-please_review Pull request needs code review. label Jan 16, 2020
@tomaka tomaka requested a review from arkpar January 16, 2020 12:49
@arkpar arkpar merged commit 1e0c679 into paritytech:master Jan 16, 2020
@tomaka tomaka deleted the sync-cycle-fix branch January 16, 2020 15:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants