[go: nahoru, domu]

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

Trimming partitioned files cause log drop #476

Closed
sayuan opened this issue Dec 12, 2018 · 3 comments
Closed

Trimming partitioned files cause log drop #476

sayuan opened this issue Dec 12, 2018 · 3 comments

Comments

@sayuan
Copy link
sayuan commented Dec 12, 2018

When trimFiles[1] happen, it need the offset[2] of each massage.
[1]: https://github.com/pinterest/secor/blob/master/src/main/java/com/pinterest/secor/uploader/Uploader.java#L258
[2]: https://github.com/pinterest/secor/blob/master/src/main/java/com/pinterest/secor/uploader/Uploader.java#L177

If one partition has multiple (partitioned) files, it will retrieve the incorrect offset.
https://github.com/pinterest/secor/blob/master/src/main/java/com/pinterest/secor/io/impl/DelimitedTextFileReaderWriterFactory.java#L91

Therefore, it will filter out logs incorretctly and cause the log drop.

@HenryCaiHaiying
Copy link
Contributor
HenryCaiHaiying commented Dec 12, 2018 via email

@sayuan
Copy link
Author
sayuan commented Dec 12, 2018

Here is the list of Reader which doesn't manage the offset correctly:

# git grep -l offset++ src/main/java/com/pinterest/secor/io/impl
src/main/java/com/pinterest/secor/io/impl/AvroFileReaderWriterFactory.java
src/main/java/com/pinterest/secor/io/impl/AvroParquetFileReaderWriterFactory.java
src/main/java/com/pinterest/secor/io/impl/JsonORCFileReaderWriterFactory.java
src/main/java/com/pinterest/secor/io/impl/ProtobufParquetFileReaderWriterFactory.java
src/main/java/com/pinterest/secor/io/impl/ThriftParquetFileReaderWriterFactory.java```

@HenryCaiHaiying
Copy link
Contributor
HenryCaiHaiying commented Dec 13, 2018 via email

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

No branches or pull requests

2 participants