client: do not check file size when inode does not have Fc caps#63383
client: do not check file size when inode does not have Fc caps#63383
Conversation
|
Oh..I see that this is not an issue with squid because the problematic check for |
|
Fixed and updated. |
anoopcs9
left a comment
There was a problem hiding this comment.
I can confirm that the torture test case from which the regression (reported via samba-in-kubernetes/sit-test-cases#100) was detected can now successfully complete with the changes from the PR.
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
rebased and updated. |
|
This PR is under test in https://tracker.ceph.com/issues/71496. |
This is now being tested in https://tracker.ceph.com/issues/71514 |
|
jenkins test windows |
2 similar comments
|
jenkins test windows |
|
jenkins test windows |
|
fs suite is currently experiencing unrelated test failures which is being debugged. will restart testing when its resolved. |
|
jenkins test windows |
1 similar comment
|
jenkins test windows |
|
@vshankar Is this good to be merged? |
We ran into a couple of unrelated issues from the last 2 weeks (testing kernel bug, teutholgoy slowness). Now that the tests have run, this will get merged pretty soon. |
|
This change will conflict with #63636 once merged, so I'm delaying testing since it would need a rebase. But, this will get merged soon. |
I have included this change in https://tracker.ceph.com/issues/71496 as PR #63636 has received more comments and needs windows build fix. Let's get this merged first! |
|
jenkins test windows |
|
@vshankar I see the same failure you mentioned in #63636 (comment). |
oh, windows w/ O_NONBLOCK :/ |
|
(hang on -- let me fix this up) |
|
I think its safe to not use O_NONBLOCK |
At least for this particular test case |
Since the client is holding Fr caps, the read request can be directly sent to the OSD. The offset/in->size comparison check is causing the read request to return with no data since in->size isn't yet updated when another client does an extending write. Introduced-by: 942474c Fixes: http://tracker.ceph.com/issues/70726 Signed-off-by: Venky Shankar <vshankar@redhat.com>
Credit to @anoopcs9 for the reproducer. Signed-off-by: Venky Shankar <vshankar@redhat.com>
|
Update with |
* refs/pull/63383/head: test: multi client file read/write test for extending writes client: do not check file size when inode does not have Fc caps Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com> Reviewed-by: Anoop C S <anoopcs@cryptolab.net>
Fixes: https://tracker.ceph.com/issues/70726
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. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition