Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-195

Bug about 'serializedSize' in ChunkGroupMetaData.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0
    • None

    Description

      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.

      /**
       * 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;
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jackietien Yuan Tian
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m