test/libcephfs: update delegation test assertions#52569
Conversation
Some of the libcephfs tests ensure that the delegations are recalled
as a result of certain open requests.
The issue is that we're expecting the "opened" flag to be false
after the delegation gets recalled, which is racy.
/home/ubuntu/ceph/src/test/libcephfs/deleg.cc:392: Failure
Expected equality of these values:
opened.load()
Which is: true
false
We'll update those checks, asserting that "opened" is true after
the delegation breaker thread returns.
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
|
jenkins test make check |
I think I accidentally deleted @petrutlucian94 comment. Will have a look today. |
|
LGTM. Requesting another eye on the change from @lxbsz |
|
@petrutlucian94 I nudged @mchangir to run this through fs suite over the weekend, but our shaman build have started acting otherwise, which means this change couldn't be tested. I suggest if this fixes the windows failures, then we merge it and @mchangir will run it through fs suite anyway and we can fix failures (if any). WDYT? |
@vshankar Sounds good, thanks! It's a simple patch but please ping me if there are any issues. Sorry for the late reply, I was OOF yesterday. |
I'll merge this in a while. |
|
@mchangir I merged this, however, please run this through the integration tests. |
Some of the libcephfs tests ensure that the delegations are recalled as a result of certain open requests.
The issue is that we're expecting the "opened" flag to be false after the delegation gets recalled, which is racy.
We'll update those checks, asserting that "opened" is true after the delegation breaker thread returns.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows