Johnny-ZTSD opened a new issue, #19099:
URL: https://github.com/apache/iotdb/issues/19099

   > [Feature Request] 咨询:开源发行版中数据订阅(SUBSCRIPTION_ENABLED)的启用时间安排
   > [Feature Request] Question: The schedule for enabling the data 
subscription (SUBSCRIPTION_ENABLED) in the open-source distribution
   
   ## 背景描述 & 咨询诉求
   您好!我在开源版 IoTDB 2.0.x(测试环境为 **2.0.11**,单机部署)上准备搭建 
   「IoTDB → Flink 1.20」的**实时消费链路**,尝试订阅 API 时遇到了报错:
   
   > `Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 1912: Subscription is not 
enabled.`
   
   排查后确认了原因:`iotdb-core/node-commons/.../conf/CommonConfig.java` 中的总开关是**关闭**的,
   
   ```java
   public static final boolean SUBSCRIPTION_ENABLED = false;
   ```
   
   在 2.0.x(含 2.0.11)乃至当前 master 分支上默认为 `false`,且不读取 properties 
   配置,因此无法通过配置项打开,只能随版本变更。
   
   ## 已做过的功课
   - 阅读了官方 UserGuide 的 Data Subscription 章节(其中介绍订阅为 V1.3.3 起支持的功能);
   - 对比 v1.3.4:该版本无此常量,订阅可用;
   - 查看了近期 master 上订阅相关 PR(如 #19053、#19062、#19019 等),确认订阅模块
     仍在活跃维护和加固;
   - 我所在的环境确认 **必须停留在开源 2.x**(**Table 模型等新能力是刚需**),因此
     无法回退 1.3.x 作为**替代方案**。
   
   ## 本次咨询的具体问题
   1. 订阅功能目前停留在 `SUBSCRIPTION_ENABLED = false`,**预计在哪个版本**(或 **大致时间线**)
      会在**开源**发行版中默认启用?是 2.0.x 的后续 patch、2.x 的 minor 版本,还是
      3.x 大版本?
   2. 若**时间线**尚未确定,能否**透露阻塞点的大致方向**?例如——是仍在修复共识订阅
      在 Ratis 集群下的问题(类似 #19053 的场景)、table-model 订阅收尾、还是其他?
   3. 社区是否接受:在开关保持关闭的前提下,为**开发/测试环境**提供一个可选的
      配置项(如 `iotdb-common.properties` 中的 `enable_subscription`)让用户自行
      承担风险试用?如可接受,愿提交 PR 讨论。
   
   ## 环境信息
   - Version: iotdb 2.0.11(开源发行版,单机)
   - 客户端: iotdb-session 2.0.11 / flink-streaming-java 1.20.5 / JDK 17
   - 部署形态: 单机 1C1D 启动
   
   谢谢!如需我补充任何复现脚本或日志,随时告知。


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to