forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(file source)!: use uncompressed content for fingerprinting files …
…(lines and ignored_header_bytes) (vectordotdev#22050) * Check the crc of uncompressed lines when reading from compressed gzip files * Update documentation * Handle header bytes properly and add a test * Use fingerprint instead of fingerprinter * Clarify that only gzip is supported at this time * Propagate errors upward as alluded to in @jszwedko comments * Refactor check Signed-off-by: Jesse Szwedko <[email protected]> * Have to seek after finding algorithm too Signed-off-by: Jesse Szwedko <[email protected]> * Remove whitespace * Clippy * make check-component-docs * Attempt to reset the position and also add a doc comment * Update changelog.d/22050-fingerprint-uncompressed-file-content.fix.md Co-authored-by: Pavlos Rontidis <[email protected]> * Use GZIP_MAGIC * Update lib/file-source/src/fingerprinter.rs --------- Signed-off-by: Jesse Szwedko <[email protected]> Co-authored-by: Jesse Szwedko <[email protected]> Co-authored-by: Pavlos Rontidis <[email protected]>
- Loading branch information
Showing
5 changed files
with
272 additions
and
11 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
changelog.d/22050-fingerprint-uncompressed-file-content.fix.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Changes the fingerprint for file sources to use uncompressed file content | ||
as a source of truth when fingerprinting lines and checking | ||
`ignored_header_bytes`. Previously this was using the compressed bytes. For now, only gzip compression is supported. | ||
|
||
authors: roykim98 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.