Zihan Meng created IOTDB-140:
--------------------------------
Summary: 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
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
(v7.6.14#76016)