-
Notifications
You must be signed in to change notification settings - Fork 100
Check and avoid to process corrupted gzip files, close #261 #265
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,6 +164,7 @@ see <<plugins-{type}s-{plugin}-string_duration,string_duration>> for the details | |
[cols="<,<,<",options="header",] | ||
|======================================================================= | ||
|Setting |Input type|Required | ||
| <<plugins-{type}s-{plugin}-check_archive_validity>> |<<boolean,boolean>>|No | ||
| <<plugins-{type}s-{plugin}-close_older>> |<<number,number>> or <<plugins-{type}s-{plugin}-string_duration,string_duration>>|No | ||
| <<plugins-{type}s-{plugin}-delimiter>> |<<string,string>>|No | ||
| <<plugins-{type}s-{plugin}-discover_interval>> |<<number,number>>|No | ||
|
@@ -191,6 +192,20 @@ input plugins. | |
|
||
| ||
|
||
[id="plugins-{type}s-{plugin}-check_archive_validity"] | ||
===== `check_archive_validity` | ||
|
||
* Value type is <<boolean,boolean>> | ||
* The default is `false`. | ||
|
||
When set to `true`, this setting verifies that a compressed file is valid before | ||
processing it. There are two passes through the file--one pass to | ||
verify that the file is valid, and another pass to process the file. | ||
|
||
Validating a compressed file requires more processing time, but can prevent a | ||
corrupt archive from causing looping. | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good explanation. I took the information you provided, and tried to reword it a bit. What do you think about this:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I'm not wrong, from this rewording I understand that reading an archive is costly, so before read a corrupted archive (and waste time) this option enables the verification. In the original form I tried to describe that processing a corrupted archive led to looping on that archive and to avoid this we could enable this flag. Enabling this flag means read upfront the entire file for a verification and then read it again for processing. In this case for a not corrupted archive this could be considered a waste of time. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about this:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @karenzone sounds really really better |
||
[id="plugins-{type}s-{plugin}-close_older"] | ||
===== `close_older` | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two comments about the changelog:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The doubling of description was my fault on conflict resolution, now fixed. For the the rest, we could merge your `4.1.17' and this one so that we publish just one time, WDYT?