leaves12138 opened a new pull request, #7915:
URL: https://github.com/apache/paimon/pull/7915

   ### Purpose
   
   `BlobDescriptor.serialize()` should always write the current descriptor 
format version. Otherwise, a descriptor deserialized from an older version may 
be serialized with the old version byte while still using the current layout 
with the magic header, making the bytes inconsistent.
   
   ### Changes
   
   - Write `CURRENT_VERSION` in `BlobDescriptor.serialize()`.
   - Add a regression test for deserializing a v1 blob descriptor and 
serializing it back with the current version.
   
   ### Tests
   
   - `mvn -U -pl paimon-common -am -Dtest=BlobDescriptorTest 
-DfailIfNoTests=false test`
   


-- 
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]

Reply via email to