You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2022/06/22 15:12:46 UTC
[iotdb] 01/01: Fix Source Handle Bug
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch SourceHandleBug
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 42a8863249d1db26a331d8c6691e89c1379ac829
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Wed Jun 22 23:12:32 2022 +0800
Fix Source Handle Bug
---
.../apache/iotdb/db/mpp/execution/datatransfer/SourceHandle.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/execution/datatransfer/SourceHandle.java b/server/src/main/java/org/apache/iotdb/db/mpp/execution/datatransfer/SourceHandle.java
index a27244e2c8..32243eeafb 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/execution/datatransfer/SourceHandle.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/execution/datatransfer/SourceHandle.java
@@ -122,8 +122,10 @@ public class SourceHandle implements ISourceHandle {
throw new IllegalStateException("Source handle is blocked.");
}
- TsBlock tsBlock;
- tsBlock = sequenceIdToTsBlock.remove(currSequenceId);
+ TsBlock tsBlock = sequenceIdToTsBlock.remove(currSequenceId);
+ if (tsBlock == null) {
+ return null;
+ }
logger.info(
"Receive {} TsdBlock, size is {}", currSequenceId, tsBlock.getRetainedSizeInBytes());
currSequenceId += 1;