Repository navigation
qa/cephfs: increase number of files to cloned in test_clone_stats.py - #66558
Conversation
joscollin
left a comment
There was a problem hiding this comment.
@rishabh-d-dave
Why reducing the file_size then?
|
@rishabh-d-dave - would you mind checking @joscollin comment. |
@rishabh-d-dave gentle nudge. |
@joscollin @vshankar Hey, I forgot to catch up to this and find out the cause behind this. Sorry about that. Thanks for the ping. @joscollin We've increased file number to allow progress reporter thread more chances to get necessary info. But simply increasing number of files would dramatically increase size of data being cloned from 3 GB to 30 GB which is unnecessary. Therefore, I've reduced the file size. |
@joscollin ping |
Got it. |
joscollin
left a comment
There was a problem hiding this comment.
The changes looks good to me.
Signed-off-by: Rishabh Dave <[email protected]>
There's a race condition between cloning operation and clone progress reporter thread to open the subvolume, former does so to copy/clone files and latter to get details of the source and destination subvolume. A low number of files in the snapshot gives clone progress reporter thread less or no chance to fetch and process the details needed to display the progress bar. This causes tests to fails when progress bar isn't displayed in the output of "ceph status" output. Increasing the number of files will give clone progress reporter more time to display the progress bar and therefore these unnecessary test failures wlll reduce/stop. This failure wasn't seen earlier because Python code was being used to copy files which was comparatively slow (compared to C++ code that was merged to copy files as a part of fscrypt work) which allowed enough time to clone progress reporter thread to process stats and display clone progress bar. Fixes: https://tracker.ceph.com/issues/74082 Signed-off-by: Rishabh Dave <[email protected]>
Currently tests wait for 10 seconds for clone progress bar to appear and it usually takes 8 seconds to find it. In case of the host where test is being run is slow, the progress bar can take more time to appear and the test can fail unnecessarily. To avoid this, increase the waiting duration. Signed-off-by: Rishabh Dave <[email protected]>
Signed-off-by: Rishabh Dave <[email protected]>
f8fbbd4 to
c75b8ee
Compare
|
@vshankar I've incorporated both the suggested changes. |
|
This PR has been added to main integration testing by vshankar started 2026-06-16-11:08. |
|
jenkins test make check arm64 |
There's a race condition between cloning operation and clone progress
reporter thread to open the subvolume, former does so to copy/clone
files and latter to get details of the source and destination subvolume.
A low number of files in the snapshot gives clone progress reporter
thread less or no chance to fetch and process the details needed to
display the progress bar. This causes tests to fails when progress bar
isn't displayed in the output of "ceph status" output.
Increasing the number of files will give clone progress reporter more
time to display the progress bar and therefore these unnecessary test
failures wlll reduce/stop.
This failure wasn't seen earlier because Python code was being used to
copy files which was comparatively slow (compared to C++ code that was
merged to copy files as a part of fscrypt work) which allowed enough
time to clone progress reporter thread to process stats and display
clone progress bar.
Fixes: https://tracker.ceph.com/issues/74082
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 DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.