You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "LiuooTime (via GitHub)" <gi...@apache.org> on 2025/01/02 15:02:40 UTC

[I] [Bug] 1.3.3版本 数据订阅 以及 mqtt 问题 [iotdb]

LiuooTime opened a new issue, #14618:
URL: https://github.com/apache/iotdb/issues/14618

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.
   
   
   ### Version
   
   1.3.3版本的数据订阅功能失效。
   mqtt服务器的订阅功能失效。
   
   ### Describe the bug and provide the minimal reproduce step
   
   1、使用java连接iotdb,订阅主题ytStatus
   ![image](https://github.com/user-attachments/assets/d0eb5595-3d3b-43c5-a405-67bfefb3022d)
   2、使用mqtt发送100消息
   ![image](https://github.com/user-attachments/assets/28e8ebf0-54a3-4e2b-a867-6572ea59435c)
   3、./start-cli进入后台。查看消息,可以看到已经添加到序列中。
   ![image](https://github.com/user-attachments/assets/1458df0b-cf4b-4228-b158-3dd5c92d4c49)
   4、问题出现:ytStatus主题的消费者未能消费掉我mqtt发送的消息。
   ![image](https://github.com/user-attachments/assets/bb16919a-9773-4709-86e2-7afb08412b69)
   4.1:如果取消订阅ytStatus,在订阅ytStatus。就可以可以打印出
   ystem.out.println("getColumnNames:=============================== " + next.getColumnNames());
                                      System.out.println("deviceId:=========" + next.getTablet().deviceId);
                                      System.out.println("timestamps:=======" + next.getTablet().timestamps);
                                      System.out.println("values:===========" + next.getTablet().values);
                                      System.out.println("getColumnTypes:=============================== " + next.getColumnTypes());
   也就是在第一次订阅后,才会后效果。后面无论采用什么样的方式(mqtt\insert timesericer () ()这两种方法)向序列中添加测量点。都不会订阅到。
   
   ### What did you expect to see?
   
   2个问题:
   1、1.3.3版本的 订阅模式只有在第一次订阅的时候,才会有效果。后面无论怎么添加数据都不能在实时的订阅到。
   2、可以向iotdb发送mqtt协议的报文(iotdb内置了mqtt服务器)。但是不能监听iotdb接受的mqtt报文。
   只能发布到时间序列里面。
   不能订阅iotdb内置的mqtt服务器所接受的报文,舍弃了mqtt原有的订阅功能。
   
   ### What did you see instead?
   
   希望作者可以解决掉问题。
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org.apache.org

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


Re: [I] [Bug] 1.3.3版本 数据订阅 以及 mqtt 问题 [iotdb]

Posted by "LiuooTime (via GitHub)" <gi...@apache.org>.
LiuooTime closed issue #14618: [Bug] 1.3.3版本 数据订阅 以及 mqtt 问题
URL: https://github.com/apache/iotdb/issues/14618


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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


Re: [I] [Bug] 1.3.3版本 数据订阅 以及 mqtt 问题 [iotdb]

Posted by "LiuooTime (via GitHub)" <gi...@apache.org>.
LiuooTime commented on issue #14618:
URL: https://github.com/apache/iotdb/issues/14618#issuecomment-2829909505

   > > 1.3.3版本的 订阅模式只有在第一次订阅的时候,才会有效果。后面无论怎么添加数据都不能在实时的订阅到
   > 
   > ./start-cli 进入后台后执行 flush 语句可以订阅到实时数据吗
   
   我现在切换到了2.0.2版本。
   使用cli命名行工具插入一条数据。在使用flush是可以订阅到的。
   但是我在5秒类插入10条数据,然后在flush,订阅监听器却只能拿到最新的一条。这个应该是没问题的。
   每次flush才能订阅到。新增数据后,不flush。数据就订阅不到了。
   目前我不flush订阅就成功了一次!!!,但是时间却相差了好几分钟。大多数情况数据都订阅不到。
   
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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


Re: [I] [Bug] 1.3.3版本 数据订阅 以及 mqtt 问题 [iotdb]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #14618:
URL: https://github.com/apache/iotdb/issues/14618#issuecomment-2567910089

   Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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


Re: [I] [Bug] 1.3.3版本 数据订阅 以及 mqtt 问题 [iotdb]

Posted by "VGalaxies (via GitHub)" <gi...@apache.org>.
VGalaxies commented on issue #14618:
URL: https://github.com/apache/iotdb/issues/14618#issuecomment-2568656439

   > 1.3.3版本的 订阅模式只有在第一次订阅的时候,才会有效果。后面无论怎么添加数据都不能在实时的订阅到
   
   ./start-cli 进入后台后执行 flush 语句可以订阅到实时数据吗


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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


Re: [I] [Bug] 1.3.3版本 数据订阅 以及 mqtt 问题 [iotdb]

Posted by "LiuooTime (via GitHub)" <gi...@apache.org>.
LiuooTime commented on issue #14618:
URL: https://github.com/apache/iotdb/issues/14618#issuecomment-2568835502

   执行后仍然没有效果。


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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


Re: [I] [Bug] 1.3.3版本 数据订阅 以及 mqtt 问题 [iotdb]

Posted by "CritasWang (via GitHub)" <gi...@apache.org>.
CritasWang commented on issue #14618:
URL: https://github.com/apache/iotdb/issues/14618#issuecomment-2817492788

   iotdb 内置的 mqtt 服务器,目前仅提供将数据写入 iotdb 的功能,不提供外部订阅。如果需要外部订阅可以考虑使用其他的 mqtt 服务器


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

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