Yuan Tian created IOTDB-195:
-------------------------------

             Summary: Bug about 'serializedSize' in ChunkGroupMetaData.java
                 Key: IOTDB-195
                 URL: https://issues.apache.org/jira/browse/IOTDB-195
             Project: Apache IoTDB
          Issue Type: Bug
            Reporter: Yuan Tian


According to the comments,  the field 'serializedSize' in ChunkGroupMetaData 
class means 'Byte size of this metadata'. 
However, when you calculate the value in the method 'deserializeFrom' as we can 
see in the following, chunkGroupMetaData.deviceID.length() may not equal to the 
byte size of the string.

{code:java}
/**
 * Byte size of this metadata. this field is not serialized.
 */
private int serializedSize;

chunkGroupMetaData.serializedSize = Integer.BYTES + 
chunkGroupMetaData.deviceID.length() + Integer.BYTES + Long.BYTES + Long.BYTES 
+ Long.BYTES;
{code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to