You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2025/05/09 03:08:04 UTC
(iotdb) branch master updated: fix npe (#15477)
This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 6df744ac984 fix npe (#15477)
6df744ac984 is described below
commit 6df744ac98429a2873c397b412422bd5fb12d06c
Author: Peng Junzhi <78...@users.noreply.github.com>
AuthorDate: Fri May 9 11:07:58 2025 +0800
fix npe (#15477)
---
.../pipe/receiver/protocol/pipeconsensus/PipeConsensusReceiver.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/pipeconsensus/PipeConsensusReceiver.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/pipeconsensus/PipeConsensusReceiver.java
index d01d7315b95..1e51e1e9267 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/pipeconsensus/PipeConsensusReceiver.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/pipeconsensus/PipeConsensusReceiver.java
@@ -1139,7 +1139,7 @@ public class PipeConsensusReceiver {
}
}
- return tsFileWriter.get();
+ return tsFileWriter.get().refreshLastUsedTs();
}
private void checkZombieTsFileWriter() {
@@ -1309,9 +1309,13 @@ public class PipeConsensusReceiver {
public void setUsed(boolean used) {
isUsed = used;
+ }
+
+ public PipeConsensusTsFileWriter refreshLastUsedTs() {
if (isUsed) {
lastUsedTs = System.currentTimeMillis();
}
+ return this;
}
public void returnSelf(ConsensusPipeName consensusPipeName)