Repository navigation
lxc: Make incremental memory migration opt-in - #3828
Conversation
| "github.com/stretchr/testify/require" | ||
| ) | ||
|
|
||
| func TestMigrationPreDumpSettings(t *testing.T) { |
There was a problem hiding this comment.
This PR is making a bunch of completely needless changes to the code just to allow this test to exist. At the end of the day, all this test does is check if util.IsTrue in fact returns true when passed true.
It's completely pointless and should be removed, allowing the code itself to actually be readable.
There was a problem hiding this comment.
Agreed. I removed the test and the helper introduced solely for it, and restored the check to the migration control flow directly.
|
Please rebase so we have a single commit to look at. Incus review process is to consider each commit individually, so we generally dislike follow-up commits undoing a previous commit's content. |
Signed-off-by: Simon Zhou <jp.zdm2008@gmail.com>
3748e67 to
2e2f45a
Compare
|
Rebased onto current main and squashed the follow-up into a single signed-off commit as requested. Thanks. |
The
migration.incremental.memoryconfiguration is documented with a default of false, but the LXC migration sender currently enables pre-dumps when the key is unset. It also probes the CRIU dirty-memory feature even when the setting is explicitly false.Treat incremental memory migration as opt-in and only probe CRIU when the expanded configuration is explicitly true. Preserve the existing default iteration count and upper bound.
The driver package tests and
go vetpass on Linux.