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

Fix flaky test in service_domain_db_SUITE #4072

Merged
merged 1 commit into from
Aug 3, 2023

Commits on Aug 1, 2023

  1. Fix a race condition in service_domain_db_suite.db_keeps_syncing_afte…

    …r_cluster_join
    
    sync() assumes that sending message from mim() to mim2() node is instant
    
    But it is not true, so check_for_updates message is received after sync_local call
    in tests.
    
    I.e. the following scenario fails:
    
    1. Test node asks mim2() to insert a domain.
    2. mim2() sends check_for_updates to mim() node.
    3. Test node calls sync_local on mim() node.
    4. mim() calls sync_local and replies to the test node.
    5. mim() finally receives check_for_updates from mim2(), send in step 2.
    arcusfelis committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    139130e View commit details
    Browse the repository at this point in the history