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

Batch write buffer size is not correctly allocated

    XMLWordPrintableJSON

Details

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

    Description

      In RowBatch line 174, we are allocating buffer size for text datatype. But we fail to consider we need to put the length of the text firstly and then put the text itself. The bugging code as following:
      ```
      case TEXT:
      for (Binary value: (Binary[]) values[i])

      { valueOccupation += value.getLength(); }

      break;
      ```

      Attachments

        Activity

          People

            Unassigned Unassigned
            SilverNarcissus Kaifeng Xue
            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 - 0.5h
                0.5h