Problem with defaults are in diferent partitions
josejuanmontiel opened this issue ยท 6 comments
If i have /home and /tmp in different partitions
[memongo] [INFO] Starting MongoDB with options &memongo.Options{ShouldUseReplica:false, Port:33655, CachePath:"/home/jose/.cache/memongo", MongoVersion:"4.0.5", DownloadURL:"https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian92-4.0.5.tgz", MongodBin:"", Logger:(*log.Logger)(nil), LogLevel:0, StartupTimeout:10000000000, Auth:false}
[memongo] [INFO] mongod from https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian92-4.0.5.tgz does not exist in cache, downloading to /home/jose/.cache/memongo/mongodb-linux-x86_64-debian92-4_0_5_tgz_013dacf59f/mongod
2022/05/25 23:16:57 error writing mongod binary from /tmp/795252025 to /home/jose/.cache/memongo/mongodb-linux-x86_64-debian92-4_0_5_tgz_013dacf59f/mongod: rename /tmp/795252025 /home/jose/.cache/memongo/mongodb-linux-x86_64-debian92-4_0_5_tgz_013dacf59f/mongod: invalid cross-device link
Process 9141 has exited with status 1
Seem something like this works
Seem that was thinking about... but for some reason didn't work now...
Hope consider this aproach
Thanks
I see the path is right, i approved run workflow, please finish your contribution freely mate ;) thank you very much
Hey
From your comment i though you did not finish
From my side tests are good, the workflow ran without breaking
I also understand it is complex to add a test case for a case like this one (it's not immediate to simulate multiple partitions on OS level in go tests)
So i guess it LGTM ๐
ok ... my coment may lead to this conclusion ๐ i'll take the challenge... let me imaging something to night... for the test, if not easy... we can consider merge.
Thanks
A week (when i said a night i mean a few :D) later... i think #17 it's a better aproach