Project

General

Profile

Bug #11837

tests/pf_key/acquire-compare is racy

Added by John Levon about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

There are multiple issues with this test that can cause spurious failures.

#1

Updated by John Levon about 1 year ago

Some specific issues:

- we need to pause a while after each ping/telnet invocation to make sure monitor log records aren't interleaved
- we need to wait at the start and end to make sure the monitor is up and down properly
- instead of pfiles, which can race against telnet startup, just specify a telnet port
#2

Updated by Dan McDonald about 1 year ago

telnet is probably insufficient for this test, as AFAICT you cannot set the LOCAL port as well, and we really need to specify the 4-tuple to avoid using pfiles.

#3

Updated by Electric Monk about 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 3dae5456c609a0bdfeffc8d1c0dc436db6ab3436

commit  3dae5456c609a0bdfeffc8d1c0dc436db6ab3436
Author: John Levon <john.levon@joyent.com>
Date:   2019-10-28T21:10:40.000Z

    11837 tests/pf_key/acquire-compare is racy
    Reviewed by: Robert Mustacchi <rm@fingolfin.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF