[jira] [Commented] (IOTDB-5438) [Session] NullPointerException when close result set

2023-01-29 Thread Yuan Tian (Jira)


[ 
https://issues.apache.org/jira/browse/IOTDB-5438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17681902#comment-17681902
 ] 

Yuan Tian commented on IOTDB-5438:
--

caused by user's codes.

!image-2023-01-30-14-28-32-801.png!

they should null check for wrapper in line 165.

> [Session] NullPointerException when close result set
> 
>
> Key: IOTDB-5438
> URL: https://issues.apache.org/jira/browse/IOTDB-5438
> Project: Apache IoTDB
>  Issue Type: Bug
>Reporter: Hongyin Zhang
>Assignee: Yuan Tian
>Priority: Major
> Fix For: 0.13.3
>
> Attachments: image-2023-01-30-14-28-32-801.png
>
>
> Exception msg:
>  
> java.lang.NullPointerException at 
> org.apache.iotdb.session.pool.SessionPool.closeResultSet(SessionPool.java:476)
>  at 
> com.platform.domain.service.impl.IoTDBService.executeQuery(IoTDBService.java:196)
>  at 
> com.platform.domain.service.impl.IoTDBService.executeSQL(IoTDBService.java:75)
>  at com.platform.action.system.IoTdbAction.execute(IoTdbAction.java:33) at 
> com.platform.domain.fastexecute.FastActionManager.process(FastActionManager.java:87)
>  at 
> com.platform.domain.fastexecute.task.FastActionTask.run(FastActionTask.java:75)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  at java.lang.Thread.run(Thread.java:748)
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (IOTDB-5438) [Session] NullPointerException when close result set

2023-01-29 Thread Yuan Tian (Jira)


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

Yuan Tian reassigned IOTDB-5438:


Assignee: Yuan Tian

> [Session] NullPointerException when close result set
> 
>
> Key: IOTDB-5438
> URL: https://issues.apache.org/jira/browse/IOTDB-5438
> Project: Apache IoTDB
>  Issue Type: Bug
>Reporter: Hongyin Zhang
>Assignee: Yuan Tian
>Priority: Major
> Fix For: 0.13.3
>
>
> Exception msg:
>  
> java.lang.NullPointerException at 
> org.apache.iotdb.session.pool.SessionPool.closeResultSet(SessionPool.java:476)
>  at 
> com.platform.domain.service.impl.IoTDBService.executeQuery(IoTDBService.java:196)
>  at 
> com.platform.domain.service.impl.IoTDBService.executeSQL(IoTDBService.java:75)
>  at com.platform.action.system.IoTdbAction.execute(IoTdbAction.java:33) at 
> com.platform.domain.fastexecute.FastActionManager.process(FastActionManager.java:87)
>  at 
> com.platform.domain.fastexecute.task.FastActionTask.run(FastActionTask.java:75)
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  at java.lang.Thread.run(Thread.java:748)
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (IOTDB-5439) [Benchmark] The error of statistic query point

2023-01-29 Thread Hongyin Zhang (Jira)
Hongyin Zhang created IOTDB-5439:


 Summary: [Benchmark] The error of statistic query point
 Key: IOTDB-5439
 URL: https://issues.apache.org/jira/browse/IOTDB-5439
 Project: Apache IoTDB
  Issue Type: Bug
Reporter: Hongyin Zhang
Assignee: Hongyin Zhang


when query_sensor or query_device is not null, there is error when statistic 
query point



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (IOTDB-5140) Add metrics for compaction deserializing pages or writing chunks

2023-01-29 Thread Jinrui Zhang (Jira)


[ 
https://issues.apache.org/jira/browse/IOTDB-5140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17681841#comment-17681841
 ] 

Jinrui Zhang commented on IOTDB-5140:
-

Need to put another PR to rel/1.0

> Add metrics for compaction deserializing pages or writing chunks
> 
>
> Key: IOTDB-5140
> URL: https://issues.apache.org/jira/browse/IOTDB-5140
> Project: Apache IoTDB
>  Issue Type: Improvement
>Reporter: Liuxuxin
>Assignee: Liuxuxin
>Priority: Major
>  Labels: pull-request-available
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> We want to trace the count of deserlializing chunk or pages during compaction.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Reopened] (IOTDB-5140) Add metrics for compaction deserializing pages or writing chunks

2023-01-29 Thread Jinrui Zhang (Jira)


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

Jinrui Zhang reopened IOTDB-5140:
-

> Add metrics for compaction deserializing pages or writing chunks
> 
>
> Key: IOTDB-5140
> URL: https://issues.apache.org/jira/browse/IOTDB-5140
> Project: Apache IoTDB
>  Issue Type: Improvement
>Reporter: Liuxuxin
>Assignee: Liuxuxin
>Priority: Major
>  Labels: pull-request-available
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> We want to trace the count of deserlializing chunk or pages during compaction.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (IOTDB-5438) [Session] NullPointerException when close result set

2023-01-29 Thread Hongyin Zhang (Jira)
Hongyin Zhang created IOTDB-5438:


 Summary: [Session] NullPointerException when close result set
 Key: IOTDB-5438
 URL: https://issues.apache.org/jira/browse/IOTDB-5438
 Project: Apache IoTDB
  Issue Type: Bug
Reporter: Hongyin Zhang
 Fix For: 0.13.3


Exception msg:

```

java.lang.NullPointerException at 
org.apache.iotdb.session.pool.SessionPool.closeResultSet(SessionPool.java:476) 
at 
com.platform.domain.service.impl.IoTDBService.executeQuery(IoTDBService.java:196)
 at 
com.platform.domain.service.impl.IoTDBService.executeSQL(IoTDBService.java:75) 
at com.platform.action.system.IoTdbAction.execute(IoTdbAction.java:33) at 
com.platform.domain.fastexecute.FastActionManager.process(FastActionManager.java:87)
 at 
com.platform.domain.fastexecute.task.FastActionTask.run(FastActionTask.java:75) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at 
java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
at java.lang.Thread.run(Thread.java:748)

```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (IOTDB-5164) [disk]datanode takes too much disk space, should improve

2023-01-29 Thread Jinrui Zhang (Jira)


[ 
https://issues.apache.org/jira/browse/IOTDB-5164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17681832#comment-17681832
 ] 

Jinrui Zhang commented on IOTDB-5164:
-

这个issue 可以关闭了吗?

> [disk]datanode takes too much disk space, should improve
> 
>
> Key: IOTDB-5164
> URL: https://issues.apache.org/jira/browse/IOTDB-5164
> Project: Apache IoTDB
>  Issue Type: Improvement
>Reporter: changxue
>Assignee: Jinrui Zhang
>Priority: Major
> Attachments: iotdb-common.properties, iotdb-confignode.properties, 
> iotdb-datanode.properties
>
>
> [disk]datanode takes too much disk space, should improve
> Here is the disk taking state of one node, it shows 124G data would take 230G 
> in one node, and there are 3 nodes with 3 replicas, so 124G data would take 6 
> times of real one. This is too much.
> {code}
> 124G  ./datanode/data/sequence
> 51M   ./datanode/data/unsequence
> 104G  ./datanode/data/snapshot
> 228G  ./datanode/data
> 414M  ./datanode/wal/root.test-0
> 401M  ./datanode/wal/root.test-3
> 394M  ./datanode/wal/root.test-1
> 410M  ./datanode/wal/root.test-2
> 394M  ./datanode/wal/root.test-4
> 2.0G  ./datanode/wal
> 4.0K  ./datanode/system/compression_ratio
> 16K   ./datanode/system/schema
> 4.0K  ./datanode/system/roles
> 8.0K  ./datanode/system/users
> 48K   ./datanode/system/databases
> 4.0K  ./datanode/system/upgrade
> 8.0K  ./datanode/system/udf
> 100K  ./datanode/system
> 5.2M  ./datanode/consensus/schema_region
> 356K  ./datanode/consensus/data_region
> 5.6M  ./datanode/consensus
> 230G  ./datanode
> 4.0K  ./confignode/system/roles
> 8.0K  ./confignode/system/users
> 4.0K  ./confignode/system/procedure
> 24K   ./confignode/system
> 4.1M  ./confignode/consensus/47474747-4747-4747-4747-
> 4.1M  ./confignode/consensus
> 4.1M  ./confignode
> 230G  .
> {code}
> 124G的数据,单个节点上要占用230G的空间,这是个3节点集群配置的3副本,所以,它总共要占用6倍的磁盘空间。这实在太多了,我觉得需要优化。咱们snapshot的设计是否有部分重复。这部分空间是否可以复用。
> 说明:可能是因为磁盘空间不足导致readonly, 然后snapshot。



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (IOTDB-5411) Write an error using the session interface

2023-01-29 Thread Xinyu Tan (Jira)


[ 
https://issues.apache.org/jira/browse/IOTDB-5411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17681727#comment-17681727
 ] 

Xinyu Tan commented on IOTDB-5411:
--

https://github.com/apache/iotdb/pull/8840

> Write an error using the session interface
> --
>
> Key: IOTDB-5411
> URL: https://issues.apache.org/jira/browse/IOTDB-5411
> Project: Apache IoTDB
>  Issue Type: Bug
>  Components: Client/Java
>Reporter: sunhao
>Assignee: Hongyin Zhang
>Priority: Major
> Attachments: image-2023-01-12-18-17-00-706.png
>
>
> !image-2023-01-12-18-17-00-706.png|width=1035,height=188!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (IOTDB-5436) [session]java native api should give api to active,deactive and unset template

2023-01-29 Thread Haonan Hou (Jira)


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

Haonan Hou reassigned IOTDB-5436:
-

Assignee: Yukun Zhou  (was: Haonan Hou)

> [session]java native api should give api to active,deactive and unset template
> --
>
> Key: IOTDB-5436
> URL: https://issues.apache.org/jira/browse/IOTDB-5436
> Project: Apache IoTDB
>  Issue Type: Bug
>  Components: Client/Java
>Affects Versions: 1.1.0
>Reporter: changxue
>Assignee: Yukun Zhou
>Priority: Major
>
> [session]java native api should give api to active,deactive and unset template
> Could not drop template, because there is no way to deactive and unset a 
> template
> StatementExecutionException: 507: Template [aligned_template] has been set on 
> MTree, cannot be dropped now.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (IOTDB-5437) [session] countMeasurementsInTemplate StatementExecutionException: 300: COUNT_MEASUREMENTShas not been supported.

2023-01-29 Thread Haonan Hou (Jira)


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

Haonan Hou reassigned IOTDB-5437:
-

Assignee: Yukun Zhou  (was: Haonan Hou)

> [session] countMeasurementsInTemplate  StatementExecutionException: 300: 
> COUNT_MEASUREMENTShas not been supported.
> --
>
> Key: IOTDB-5437
> URL: https://issues.apache.org/jira/browse/IOTDB-5437
> Project: Apache IoTDB
>  Issue Type: Bug
>  Components: Client/Java
>Affects Versions: 1.1.0
>Reporter: changxue
>Assignee: Yukun Zhou
>Priority: Major
> Attachments: image-2023-01-29-16-14-32-615.png
>
>
> [session] countMeasurementsInTemplate  StatementExecutionException: 300: 
> COUNT_MEASUREMENTShas not been supported.
> The user guide shows we support the method of countMeasurementsInTemplate , 
> but actually it has not been supported.
> https://iotdb.apache.org/zh/UserGuide/Master/API/Programming-Java-Native-API.html
>  !image-2023-01-29-16-14-32-615.png|width=700! 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (IOTDB-5437) [session] countMeasurementsInTemplate StatementExecutionException: 300: COUNT_MEASUREMENTShas not been supported.

2023-01-29 Thread changxue (Jira)
changxue created IOTDB-5437:
---

 Summary: [session] countMeasurementsInTemplate  
StatementExecutionException: 300: COUNT_MEASUREMENTShas not been supported.
 Key: IOTDB-5437
 URL: https://issues.apache.org/jira/browse/IOTDB-5437
 Project: Apache IoTDB
  Issue Type: Bug
  Components: Client/Java
Affects Versions: 1.1.0
Reporter: changxue
Assignee: Haonan Hou
 Attachments: image-2023-01-29-16-14-32-615.png

[session] countMeasurementsInTemplate  StatementExecutionException: 300: 
COUNT_MEASUREMENTShas not been supported.

The user guide shows we support the method of countMeasurementsInTemplate , but 
actually it has not been supported.

https://iotdb.apache.org/zh/UserGuide/Master/API/Programming-Java-Native-API.html
 !image-2023-01-29-16-14-32-615.png|width=700! 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (IOTDB-5436) [session]java native api should give api to active,deactive and unset template

2023-01-29 Thread changxue (Jira)
changxue created IOTDB-5436:
---

 Summary: [session]java native api should give api to 
active,deactive and unset template
 Key: IOTDB-5436
 URL: https://issues.apache.org/jira/browse/IOTDB-5436
 Project: Apache IoTDB
  Issue Type: Bug
Affects Versions: 1.1.0
Reporter: changxue
Assignee: Haonan Hou


[session]java native api should give api to active,deactive and unset template

Could not drop template, because there is no way to deactive and unset a 
template

StatementExecutionException: 507: Template [aligned_template] has been set on 
MTree, cannot be dropped now.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)