From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Florian Westphal <fw@strlen.de>
Cc: Phil Sutter <phil@nwl.cc>, netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nft] tests: shell: fix spurious errors in sets/0036add_set_element_expiration_0
Date: Wed, 27 Sep 2023 21:53:18 +0200 [thread overview]
Message-ID: <ZRSILkF7E1X5OzAP@calendula> (raw)
In-Reply-To: <20230927155317.GB17767@breakpoint.cc>
On Wed, Sep 27, 2023 at 05:53:17PM +0200, Florian Westphal wrote:
> Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> > > https://patchwork.ozlabs.org/project/netfilter-devel/patch/20230927152514.473765-1-pablo@netfilter.org/
> >
> > Ouch, still fails. Damn, I don't get a proper fix for this script.
>
> What about restoring an expire value of 3s, then check there is *one*
> element, wait 4s, check element is gone?
>
> Tests are parallelized, so this won't cause noticeable slowdown.
:) I have been running tests for a while and it seems no more spurious
errors show with:
https://patchwork.ozlabs.org/project/netfilter-devel/patch/20230927163937.757167-1-pablo@netfilter.org/
Not related, next one to look at is:
W: [DUMP FAIL] 31/378 testcases/sets/0062set_connlimit
which occasionally fails. This is because this adds an element:
table ip x {
set est-connlimit {
type ipv4_addr
size 65535
flags dynamic
elements = { 84.245.120.167 ct count over 20 }
}
}
the conncount list is empty, then GC might win race to delete this
element with no entries (GC removes empty conncount lists).
I added this test to make sure this restores fine, even if GC removes
all elements that has been restored as soon as it gets a chance to
run, because the conncount list is empty.
For this one, I can set a larger gc-interval, so GC takes longer time
to release it, and still parser coverage for this restoration remains
in place.
next prev parent reply other threads:[~2023-09-27 19:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-27 14:48 [PATCH nft] tests: shell: fix spurious errors in sets/0036add_set_element_expiration_0 Pablo Neira Ayuso
2023-09-27 15:02 ` Phil Sutter
2023-09-27 15:32 ` Pablo Neira Ayuso
2023-09-27 15:47 ` Pablo Neira Ayuso
2023-09-27 15:53 ` Florian Westphal
2023-09-27 19:53 ` Pablo Neira Ayuso [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-09-27 15:18 Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZRSILkF7E1X5OzAP@calendula \
--to=pablo@netfilter.org \
--cc=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=phil@nwl.cc \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.