Repository navigation
Fix: Presentation publishing fails when run on NFS storage - #10984
Conversation
PR bigbluebutton#9857 was incomplete and did not completely fix the issues described in bigbluebutton#9062 and bigbluebutton#9110 (dublicate).
There was a problem hiding this comment.
Looks good and successfully tested in production by manually applying the codechanges. The performance differences of File.open vs. File.read should not matter here as only yml/xml files are read and they have to be fully read to be parsed anyways.
File.read is described here. A notable difference is that File.read closes the file after reading and before returning the result.
cc @antobinary
|
Thank you for this contribution @defnull ! |
|
CLA is on its way. |
|
CLA received -- looking forward to working with you. |
What does this PR do?
This is the same as #10252 but with a new target branch.
During presentation publishing, files are opened but not closed. On NFS storage, this prevents cleanup of the parent directory after the actual work is done. The scripts fail with an
Directory not empty @ dir_s_rmdirerror. PR #9857 tried to fix this, but missed some spots. This PR fixes the "publish" phase, which was missed by the previous PR.Closes Issue(s)
closes #9062
closes #9110
Both are already closed, though.
Motivation
We run a large BBB Instance on NFS storage and hat custom fixes for this issue in place. We removed the custom fixes thinking this issue is resolved. It broke again. Thus, this PR.
More
That's all.