Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert that we can write in all data-path on startup #16745

Merged
merged 1 commit into from
Feb 22, 2016

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Feb 21, 2016

Today we might start a node and some of the paths might not have the
required permissions. This commit goes through all data directories as
well as index, shard and state directories and ensures we have write access.
To make this work across all OS etc. we are trying to write a real file
and remove it again in each of those directories

@dakrone
Copy link
Member

dakrone commented Feb 21, 2016

LGTM, awesome!

Today we might start a node and some of the paths might not have the
required permissions. This commit goes through all data directories as
well as index, shard and state directories and ensures we have write access.
To make this work across all OS etc. we are trying to write a real file
and remove it again in each of those directories
@s1monw s1monw force-pushed the probe_write_access branch from d9734bb to 387f047 Compare February 22, 2016 18:33
s1monw added a commit that referenced this pull request Feb 22, 2016
Assert that we can write in all data-path on startup

Today we might start a node and some of the paths might not have the
required permissions. This commit goes through all data directories as
well as index, shard and state directories and ensures we have write access.
To make this work across all OS etc. we are trying to write a real file
and remove it again in each of those directories
@s1monw s1monw merged commit 35ae826 into elastic:master Feb 22, 2016
@s1monw s1monw deleted the probe_write_access branch February 22, 2016 18:38
@clintongormley clintongormley added the :Core/Infra/Core Core issues without another label label Feb 28, 2016
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.

3 participants