Skip to content

libcloud plugin invalid filedescriptor#702

Merged
franku merged 2 commits intomasterfrom
dev/franku/master/libcloud-plugin-invalid-filedescriptor
Jan 25, 2021
Merged

libcloud plugin invalid filedescriptor#702
franku merged 2 commits intomasterfrom
dev/franku/master/libcloud-plugin-invalid-filedescriptor

Conversation

@franku
Copy link
Contributor

@franku franku commented Jan 6, 2021

This PR should fix the invalid file descriptor issue in the libcloud plugin. Remark, there could be information about some other issue that will be lost when written to /dev/null.

Therefore we should decide if /dev/null is right or if we want to redirect to a regular file. The reason I ask is, the invalid filedescriptor error occurs randomly and only if there was a previous write to stdout just before the new process starts. This text could containt more information about any other issue we do not know yet.

@franku franku changed the base branch from master to dev/franku/master/pre-check-hostname January 6, 2021 10:38
@franku franku requested review from arogge and pstorz January 6, 2021 10:55
@franku franku force-pushed the dev/franku/master/pre-check-hostname branch 3 times, most recently from c3a733c to 5dc2f9f Compare January 11, 2021 09:06
@franku franku force-pushed the dev/franku/master/libcloud-plugin-invalid-filedescriptor branch 2 times, most recently from 887e1d6 to 1a633e6 Compare January 13, 2021 21:55
Base automatically changed from dev/franku/master/pre-check-hostname to master January 13, 2021 22:36
@franku franku self-assigned this Jan 21, 2021
@franku franku force-pushed the dev/franku/master/libcloud-plugin-invalid-filedescriptor branch 2 times, most recently from aba130a to 5500349 Compare January 22, 2021 10:10
Copy link
Member

@arogge arogge left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@franku franku removed the request for review from pstorz January 25, 2021 10:08
- sometimes the python process library throws an invalid file
  descriptor exception during the start of worker processes when
  flushing stdout/stderr
- with this fix stdout/stderr will be redirected to /dev/null so
  there is always a valid file descriptor
@franku franku force-pushed the dev/franku/master/libcloud-plugin-invalid-filedescriptor branch from b8625e5 to d098f89 Compare January 25, 2021 10:12
@franku franku merged commit 04236e5 into master Jan 25, 2021
@franku franku deleted the dev/franku/master/libcloud-plugin-invalid-filedescriptor branch January 25, 2021 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants