You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by "Kaifeng Xue (Jira)" <ji...@apache.org> on 2019/09/19 01:27:00 UTC

[jira] [Created] (IOTDB-224) Batch write buffer size is not correctly allocated

Kaifeng Xue created IOTDB-224:
---------------------------------

             Summary: Batch write buffer size is not correctly allocated
                 Key: IOTDB-224
                 URL: https://issues.apache.org/jira/browse/IOTDB-224
             Project: Apache IoTDB
          Issue Type: Bug
            Reporter: Kaifeng Xue


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;
```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

回复:[jira] [Created] (IOTDB-224) Batch write buffer size is notcorrectly allocated

Posted by 南京大学软件学院薛恺丰 <82...@qq.com>.
Hi~
    I'm working on this issue. I will fix the size of the buffer and test it in session batch insert part.




------------------ 原始邮件 ------------------
发件人: "Yuan Tian (Jira)"<ji...@apache.org>;
发送时间: 2019年9月19日(星期四) 上午9:27
收件人: "dev"<de...@iotdb.apache.org>;

主题: [jira] [Created] (IOTDB-224) Batch write buffer size is notcorrectly allocated



Kaifeng Xue created IOTDB-224:
---------------------------------

             Summary: Batch write buffer size is not correctly allocated
                 Key: IOTDB-224
                 URL: https://issues.apache.org/jira/browse/IOTDB-224
             Project: Apache IoTDB
          Issue Type: Bug
            Reporter: Kaifeng Xue


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;
```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)