Priority: Major - P3
Affects Version/s: None
Fix Version/s: None
There is a demo here to show how hot backup should be done.
Unfortunately， there is a bug here, it is quite simple, not may be a little unfriendly to greenhands. I will show how it happens.
If a wt connection is configured with log path, like below:
log=(enabled=true,archive=true,path=journal,compressor=)}} which is mongod's standard configuration.
and if we do a hot backup, the filenames provided above will be like below:
You may find that all files are relative to root dir of the database except the wiredTigerLog files. So if the log path is set, the demo code list above will fail when copying wiredTigerLog files(aka journal in mongod).
How it happens:
the code path that get the files is like below, I did not see the code to add relate path from wt's home to the dir logfiles exists as a prefix of the return value, however I did not do an experiment to ensure this but I believe that's the point.