[ 
https://issues.apache.org/jira/browse/IOTDB-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

xiangdong Huang closed IOTDB-140.
---------------------------------

> TsFile write interface does not support string with Unicode characters
> ----------------------------------------------------------------------
>
>                 Key: IOTDB-140
>                 URL: https://issues.apache.org/jira/browse/IOTDB-140
>             Project: Apache IoTDB
>          Issue Type: Bug
>            Reporter: Zihan Meng
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> If we add a measurement with Chinese name the write module will fail and 
> throw this exception:
>  
> {code:java}
> java.io.IOException: Flushed data size is inconsistent with computation! 
> Estimated: 120, Actual: 128
>  at 
> org.apache.iotdb.tsfile.write.TsFileWriter.flushAllChunkGroups(TsFileWriter.java:273)
>  at org.apache.iotdb.tsfile.write.TsFileWriter.close(TsFileWriter.java:298)
>  at Chinese.writeData(Chinese.java:35)
>  at Chinese.tsFileWriteDirect(Chinese.java:53)
>  at Chinese.main(Chinese.java:59){code}
>  
> This exception may be because when writing a string, the writer will write 
> the length of a string first to indicate the reader to read. However, in 
> UTF-8 encoding, the length of a string may not equal to the length in 
> corresponding byte array. Debugging is in progress.



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

Reply via email to