Repository navigation
mgr/volumes: use depth-first, non-recursive approach for cloning - #64774
Conversation
|
@batrick I've separate code for cptree() from rmtree() code/PR. PTAL and let me know if this is going in the right direction. |
d49b0c8 to
49ade73
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
49ade73 to
5650531
Compare
|
jenkins retest this please |
|
jenkins test docs |
|
@batrick It would be great if you can confirm that this PR is moving in the right direction before I proceed further. |
batrick
left a comment
There was a problem hiding this comment.
Similarly to your other PR, I want to see createat, etc. going forward. It's a better way to structure this recursive operation.
5650531 to
102374a
Compare
|
@batrick PTAL. Tthe cptree code is running fine against all the tests but "at" functions are not being used yet. I'll make that change in next push. Please let me know if rest of the PR looks okay in the mean time. |
1c3dbfa to
32abf2a
Compare
|
@batrick ping Code for non-recursive cptree is working fine, except this review comment all the others have been incorporarted). Tests are also running successfully. Please review and give me an ACK, if functionally everything looks fine. If it looks fine, I'll proceed to add python bindings for "at" function and replace current functions to use them instead. |
01f5c5c to
9c6d067
Compare
|
. |
4fd1531 to
5dac3e7
Compare
Signed-off-by: Rishabh Dave <[email protected]>
Signed-off-by: Rishabh Dave <[email protected]>
Signed-off-by: Rishabh Dave <[email protected]>
Signed-off-by: Rishabh Dave <[email protected]>
Signed-off-by: Rishabh Dave <[email protected]>
Signed-off-by: Rishabh Dave <[email protected]>
…User Signed-off-by: Rishabh Dave <[email protected]>
Switch to non-recursive approach in cptree() (located in bulk_copy() in async_cloner.py) to prevent it from crashing with "RecursionError: maximum recursion depth exceeded". Fixes: https://tracker.ceph.com/issues/72357 Signed-off-by: Rishabh Dave <[email protected]>
Signed-off-by: Rishabh Dave <[email protected]>
Signed-off-by: Rishabh Dave <[email protected]>
Make it optional to pass a function reference for should_cancel
parameter of rmtree function by defining a default value for it. Right
now one has to pass a simple lambda function returning False if one
wants to make rmtree operation uninterruptible -
rmtree('some-dir', should_cancel=lambda: False)
With should_cancel's default value set to "lambda: False", the call is
much simplied -
rmtree('some-dir')
Fixes: https://tracker.ceph.com/issues/75926
Signed-off-by: Rishabh Dave <[email protected]>
Signed-off-by: Rishabh Dave <[email protected]>
Don't attempt to unlink '/' as part of recursive delete when rmtree('/')
is called as it is an invalid op.
Fixes: https://tracker.ceph.com/issues/75924
Signed-off-by: Rishabh Dave <[email protected]>
Signed-off-by: Rishabh Dave <[email protected]>
Signed-off-by: Rishabh Dave <[email protected]>
Use rmtree() instead of purge_dir() for following 2 reasons - 1. purge_dir()'s recursive nature makes it vulnerable to max recursion limit. 2. It is redundant to have purge_dir() helper method since rmtree() already performs job in a better way. Signed-off-by: Rishabh Dave <[email protected]>
7aae3e6 to
f2a0e30
Compare
|
jenkins test make check |
|
jenkins test windows |
|
jenkins test docs |
|
This PR is under test in https://tracker.ceph.com/issues/76232. |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are:
Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |
Switch to non-recursive approach in cptree() (located in bulk_copy() in
async_cloner.py) to prevent it from crashing with "RecursionError:
maximum recursion depth exceeded".
Fixes: https://tracker.ceph.com/issues/72357
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