Conversation
|
|
||
| ASSERT_EQ(-MAX_ERRNO - 1, val); | ||
|
|
||
| // do it 1000 times to make sure we are hitting |
There was a problem hiding this comment.
to make sure – a purist would argue it's about increasing the likelihood ;-).
There was a problem hiding this comment.
@rzarzynski indeed, we want to make sure we will hit on some point the socket failure injection and testing the error return value
| rados_write_op_cmpext(op, "four", 4, 0, &val); | ||
| rados_write_op_write(op, "six ", 4, 0); | ||
| std::string const s = "test_" + std::to_string(i); | ||
| ASSERT_EQ(-MAX_ERRNO - 1, rados_write_op_operate(op, ioctx, s.c_str(), NULL, LIBRADOS_OPERATION_RETURNVEC)); |
There was a problem hiding this comment.
nit: too long line.
nit: NULL instead of nullptr in changed code?
ACK for LIBRADOS_OPERATION_RETURNVEC.
There was a problem hiding this comment.
all other calls to rados_write_op_operate using NULL and not nullptr, do you think we should consider changing it?
There was a problem hiding this comment.
I won't run atilt for that :-).
97cfd6d to
80a531c
Compare
|
Hey @NitzanMordhai, I see a related failure with this one: /a/yuriw-2023-03-28_22:45:07-rados-wip-yuri7-testing-2023-03-28-0942-distro-default-smithi/7224707 There are several more instances on this link: https://pulpito.ceph.com/yuriw-2023-03-28_22:45:07-rados-wip-yuri7-testing-2023-03-28-0942-distro-default-smithi/ |
|
@ljflores sorry, missed that notification, since i changed the file target the offset was changed and thats the reason we are seeing -4096 and not -4095, going to change that. |
We are sending cmpext request that return error and rval error. In order to get reliably rval return for cmpext, we need to set RETURNVEC flag so we record in pg log in case of reconnect during socket injection. without that flag the re-request of the op won't have the rval set and we will end with unmatch error. Fixes: https://tracker.ceph.com/issues/21592 Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
80a531c to
7fa4f28
Compare
We are sending cmpext request that return error and rval error. In order to get reliably rval return for cmpext, we need to set RETURNVEC flag, so we record in pg log in case of reconnect during socket injection. Without that flag, the re-request of the op won't have the rval set, and we will end with an unmatch error.
Fixes: https://tracker.ceph.com/issues/21592
Signed-off-by: Nitzan Mordechai nmordec@redhat.com
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