ColinLeeo commented on issue #971:
URL: https://github.com/apache/tsfile/issues/971#issuecomment-5888689555
Thanks for reporting this.
We checked the current C++ implementation and confirmed the issue. When
uncompressed_size_ is zero, PageHeader::deserialize_from still reads the
compressed size and optional statistics, while an empty page written by Java
contains only the single zero varint.
This causes the reader to consume bytes from the following page and misalign
subsequent page parsing. The suggested early return is the correct fix. We will
address it and add a regression test.
We plan to fully address this issue, together with a regression test, in the
upcoming 2.5.0 release.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]