Skip to content

Patch to fix #523#526

Merged
lrascao merged 1 commit intoerlware:masterfrom
GoelDeepak:master
Oct 28, 2016
Merged

Patch to fix #523#526
lrascao merged 1 commit intoerlware:masterfrom
GoelDeepak:master

Conversation

@GoelDeepak
Copy link
Copy Markdown
Contributor

Issue 1: If RELX_REPLACE_OS_VARS is true then existing vm.args (sys.config) file
is renamed to vm.arg.orig (sys.config.orig) and a new vm.args (sys.config) is
generated. However, if for some reason new vm.args (sys.config) is not generated
then system ends up without a valid vm.args (sys.config) file and keeps failing
thereafter.

Issue 2: Continuing from issue 1, if the system does not have sufficient
disk space or the current directory is immutable then new vm.args (sys.config)
will not be generated.

This patch tries to fix both the above issues by keeping the existing
vm.args (sys.config) untouched and creates a new vm.args (sys.config)
in /tmp directory

@lrascao
Copy link
Copy Markdown
Collaborator

lrascao commented Oct 27, 2016

Now that the other PR has been merged, could you please rebase onto master and make the necessary changes? Since you're working on this would you mind taking a look at #427 and maybe considering porting that fix as well? With this PR the .orig will live on /tmp so i think it's important to support multi-node setups running on the same machine

@GoelDeepak
Copy link
Copy Markdown
Contributor Author

@lrascao I rebased my PR and verified against your new test cases. Could you review the changes? These changes would also work for multi-node as I create a random file for each run. Should I care about cleaning up the /tmp dir?

@lrascao
Copy link
Copy Markdown
Collaborator

lrascao commented Oct 27, 2016

looks good, could you please just port the comments that got dropped in check_replace_os_vars? Makes for better understanding

@GoelDeepak GoelDeepak force-pushed the master branch 2 times, most recently from 0251392 to 6482733 Compare October 28, 2016 00:46
Issue 1: If RELX_REPLACE_OS_VARS is true then existing vm.args (sys.config) file
is renamed to vm.arg.orig (sys.config.orig) and a new vm.args (sys.config) is
generated. However, if for some reason new vm.args (sys.config) is not generated
then system ends up without a valid vm.args (sys.config) file and keeps failing
thereafter.

Issue 2: Continuing from issue 1, if the system does not have sufficient
disk space or the current directory is immutable then new vm.args (sys.config)
will not be generated.

This patch tries to fix both the above issues by keeping the existing
vm.args (sys.config) untouched and creates a new vm.args (sys.config)
in /tmp directory
@GoelDeepak
Copy link
Copy Markdown
Contributor Author

Done.

@lrascao lrascao merged commit faddc92 into erlware:master Oct 28, 2016
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