Repository navigation
CDC runner: the consumer drains until the producer is done (flaky cdc-multi-clock-test) - #210
Open
junjihashimoto wants to merge 2 commits into
Open
junjihashimoto wants to merge 2 commits into
junjihashimoto wants to merge 2 commits into
Conversation
… barrier only ensures both threads start; on one CPU the consumer finished its cycles and drained before the producer pushed anything: sent 1024, received 0, 40/40 runs; with this change 0/40 on 1, 2 and 12 CPUs)
…C runner live there; #210 changed cdc_runner.cpp and IP Tests did not run)
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cdc-multi-clock-test(IP Tests, core-dsl) intermittently reports "Messages sent: 1024, received: 0". It failed on the v0.2.2 candidate (IP Tests 47253263955, attempt 1) and on the PR208 push run (47234132422, attempt 1).Cause.
c_src/cdc/cdc_runner.cpp:Change. After its loop, the consumer keeps draining until
producer_doneis set, then does one final sweep. This cannot deadlock: the queue keeps being emptied, and the producer setsproducer_doneafter its last push. Messages that arrive after the consumer's cycles are applied as inputs and counted, exactly as the existing drain did.Check. A stress harness calls
cdc_runwith stub domains, 200k/100k cycles, interval 2 (the test's settings):taskset -c 0)Here "bad" means received is 0, or received differs from sent.
Also (9b15380):
ip-tests.ymlnow runs onc_src/**changes. The JIT runtime and the CDC runner live there, and before this commit IP Tests did not run on this PR at all.