Skip to content

Commit

Permalink
bug(ldfi2): LDFI v2 should only use non-dropped messages in traces
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-daniel-gustafsson committed Feb 18, 2021
1 parent 1d4e7ca commit 670dcfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/ldfi2/src/Ldfi/Storage.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ sqliteLoad testId = do
"SELECT run_id,sender,receiver,recv_logical_time,sent_logical_time FROM network_trace \
\ WHERE test_id = :testId \
\ AND kind <> 'timer' \
\ AND NOT dropped \
\ AND NOT (sender LIKE 'client:%') \
\ AND NOT (receiver LIKE 'client:%') \
\ ORDER BY run_id ASC"
Expand Down
11 changes: 4 additions & 7 deletions src/lib/ldfi.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,10 @@ func (f *Fault) UnmarshalJSON(bs []byte) error {
func Ldfi(testId TestId, runIds []RunId, fail FailSpec) Faults {
start := time.Now()
args := []string{
"--eff", strconv.Itoa(fail.EFF),
"--crashes", strconv.Itoa(fail.Crashes),
"--test-id", strconv.Itoa(testId.TestId),
"--run-ids",
}
for _, runId := range runIds {
args = append(args, strconv.Itoa(runId.RunId))
"--endOfFiniteFailures", strconv.Itoa(fail.EFF),
"--maxCrashes", strconv.Itoa(fail.Crashes),
"--testId", strconv.Itoa(testId.TestId),
"--endOfTime", strconv.Itoa(0), // not used
}
cmd := exec.Command("detsys-ldfi", args...)
cmd.Stderr = os.Stderr
Expand Down

0 comments on commit 670dcfb

Please sign in to comment.