You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/04/28 05:59:33 UTC

[GitHub] [iotdb] herowzz edited a comment on issue #3084: 插入数据出现数据错乱现象

herowzz edited a comment on issue #3084:
URL: https://github.com/apache/iotdb/issues/3084#issuecomment-828166790


   > 代码里的`tick.getCode()` 就是上面的b01 、b02、这些值对吧。
   > 有没有可能是这个getCode() 在插入时没有与数据进行对应啊?
   
   tick对象里是局部变量,getCode取的就是exchange + "." + varity + "." + contract
   而DB的Contract列里存的也是contract值
   如果exchange 是MM,varity 是 ag,contract是 ag2101 ,那设备id得到的就是 root.MM.ag.ag2101.tick
   那么就不应该出现root.MM.ag.ag2101.tick存出来一个ag2102的数据
   
   而且,我的设备有 
   root.MM.ag.ag2101.tick
   root.MM.ag.ag2101.min1
   root.MM.ag.ag2101.min10
   root.MM.ag.ag2101.day
   奇怪的是,在这4个设备里面,都重复的出现几百条甚至上千条ag2102的数据,而且重复的数据都一模一样
   也就是说,ag2012的数据重复的数据,分别跑到这些设备里都重复的复制了一份出来
   
   我怀疑有2种可能
   1  是插入问题:在插入的时候,由于什么原因,导致往不同的设备下插入了同样的数据
   2. 是查询问题:如果插入是正常的,会不会存在某种可能,数据其实是正常的,但是由于某种不明的bug,导致我查询root.MM.ag.ag2101.tick的时候,把root.MM.ag.ag2102.tick也查出来了?
       否则为什么会出现,在同一个设备下,会存在同一个时间戳的2条不同数据呢?你们设备下不是同一个时间戳只会有1条数据吗?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org