Skip to content

Fix: Presentation publishing fails when run on NFS storage - #10984

Merged
antobinary merged 1 commit into
bigbluebutton:v2.2.x-releasefrom
defnull:patch-nfs
Dec 9, 2020
Merged

antobinary merged 1 commit into
bigbluebutton:v2.2.x-releasefrom
defnull:patch-nfs

Conversation

@defnull

@defnull defnull commented Dec 7, 2020

Copy link
Copy Markdown
Contributor

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_rmdir error. 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.

PR bigbluebutton#9857 was incomplete and did not completely fix the issues described in bigbluebutton#9062 and bigbluebutton#9110 (dublicate).

@basisbit basisbit left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@antobinary

Copy link
Copy Markdown
Member

@defnull

defnull commented Dec 7, 2020

Copy link
Copy Markdown
Contributor Author

CLA is on its way.

@ffdixon

ffdixon commented Dec 8, 2020

Copy link
Copy Markdown
Member

CLA received -- looking forward to working with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants