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

Fix import dashboards when ulimit -n is low #4246

Merged

Conversation

tsg
Copy link
Contributor

@tsg tsg commented May 8, 2017

The unzip routine was deferring close functions in a loop, so it kept
each file open. This adds a closure so the files are closed immediately.

Fixes #4244.

This also improves the error handling to always report the original error.

@tsg tsg added needs_backport PR is waiting to be backported to other branches. review v5.4.1 v6.0.0-alpha2 labels May 8, 2017
The unzip routine was deferring close functions in a loop, so it kept
each file open. This adds a closure so the files are closed immediately.

Fixes elastic#4244.

This also improves the error handling to always report the original error.
@tsg tsg force-pushed the fix_import_dashboards_too_many_open_files branch from b24c887 to ee7aee0 Compare May 8, 2017 10:11
Copy link
Member

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

WFG

@ruflin ruflin merged commit 8c5949f into elastic:master May 8, 2017
tsg added a commit to tsg/beats that referenced this pull request May 8, 2017
The unzip routine was deferring close functions in a loop, so it kept
each file open. This adds a closure so the files are closed immediately.

Fixes elastic#4244.

This also improves the error handling to always report the original error.
(cherry picked from commit 8c5949f)
@tsg tsg removed the needs_backport PR is waiting to be backported to other branches. label May 8, 2017
ruflin pushed a commit that referenced this pull request May 8, 2017
The unzip routine was deferring close functions in a loop, so it kept
each file open. This adds a closure so the files are closed immediately.

Fixes #4244.

This also improves the error handling to always report the original error.
(cherry picked from commit 8c5949f)
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.

Metricbeats 5.4.0 import_dashboards Error importing URL/file: Failed to unzip the archive
2 participants