-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with "Smart remove" in "Run in background on remote Host. EXPERIMENTAL!" when to much snapshots to delete #1359
Comments
There is a "history" of issues for this feature: |
Thanks for your research. After asking my pillow that night I wouldn't categorize that code as "experimental" in the meaning of "new and unstable". It is quite old like a good wine and there are some fixed issues about it. So deactivating it for the next release is a bad choice. I assume I triggered a rare case with my tests scripts. Via I will investigate that further but treat the "to many snapshots at once" in a separate PR. EDIT: The question is if we should touch that before the next release or better after it. Beside my special testing-use-case it seems that no one else is having problems with that feature. The last issue about that was in the year 2017. |
This feature is working fine as far as I can tell. But I called it experimental because it need to control commands running on remote without having full control over remote (if that makes any sense 🤔) The command is splitt into parts that fit into valid ssh commands ( BiT tests the max possible length for ssh commands for this) |
Maybe there is potential to optimize that maxlength feature. I'll investigate that further and first try to reproduce my problem again. @Germar I haven't tested it yet but did you ever heard of the |
I'm not sure if I knew Maybe you run Smart-remove manually without using Settingsdialog? This way you bypassed the check and |
Thanks to @aryoda comment in PR #1351 I found that issue.
BIT has an "EXPERIMENTAL" feature where the "smart remove" is done in background via SSH.

Usually it isn't done in background. And based on my observations it isn't done with SSH even if an SSH snapshot profiles is used. The remote is mounted and then a simple
rm
(more preciseshutil.rmtree()
) is done. No SSH is involed.The problem is that the feature seems really to be experimental. In my test scenario it creates a command more than 10.000 characters long which seems to be to long for SSH. Here you see just a snipped example.
The problem is obvious and also some solutions are possible. But when this problem is solved maybe there are other problems coming up with the experimental feature. I suspect that this will take much more time and testing resources.
My first suggestion was to "deactivate" that feature for the 1.3.3 release. And after that release we have more time to dive into it.
Maybe @Germar can give us more background info about that feature.
A problem could be. That the feature was introduced with 1.1.6 in the year 2015 ([CHANGELOG](* add option to run Smart Remove in background on remote host (https://launchpad.net/bugs/1457210)) and #257). so it is 7 years old and could be more stable than experimental.
The text was updated successfully, but these errors were encountered: