You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by sh...@apache.org on 2025/12/01 06:28:44 UTC
(iotdb) branch fixCompactionNPE1201-1.3 created (now aade7e64593)
This is an automated email from the ASF dual-hosted git repository.
shuwenwei pushed a change to branch fixCompactionNPE1201-1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
at aade7e64593 fix npe
This branch includes the following new commits:
new aade7e64593 fix npe
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(iotdb) 01/01: fix npe
Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
shuwenwei pushed a commit to branch fixCompactionNPE1201-1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit aade7e64593e3ca0c3dc91f2c322caaf5183aa5a
Author: shuwenwei <s1...@gmail.com>
AuthorDate: Mon Dec 1 14:23:06 2025 +0800
fix npe
---
.../dataregion/compaction/execute/task/InnerSpaceCompactionTask.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/task/InnerSpaceCompactionTask.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/task/InnerSpaceCompactionTask.java
index ca55e79bee1..77627579252 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/task/InnerSpaceCompactionTask.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/task/InnerSpaceCompactionTask.java
@@ -661,6 +661,9 @@ public class InnerSpaceCompactionTask extends AbstractCompactionTask {
* selected files to false.
*/
protected void releaseAllLocks() {
+ if (isHoldingWriteLock == null) {
+ return;
+ }
for (int i = 0; i < filesView.sourceFilesInLog.size(); ++i) {
TsFileResource resource = filesView.sourceFilesInLog.get(i);
if (isHoldingWriteLock[i]) {