Skip to content

Commit 7da96db

Browse files
committed
bug-fix
1 parent b8830da commit 7da96db

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/payload/evolvable/batch/PipeTabletEventPlainBatch.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public synchronized void onSuccess() {
9393
binaryDataBases.clear();
9494
insertNodeDataBases.clear();
9595
tabletDataBases.clear();
96+
tableModelTabletMap.clear();
9697

9798
pipe2BytesAccumulated.clear();
9899
}
@@ -127,6 +128,8 @@ public PipeTransferTabletBatchReqV2 toTPipeTransferReq() throws IOException {
127128
}
128129
}
129130

131+
tableModelTabletMap.clear();
132+
130133
return PipeTransferTabletBatchReqV2.toTPipeTransferReq(
131134
binaryBuffers,
132135
insertNodeBuffers,
@@ -146,7 +149,7 @@ public Map<Pair<String, Long>, Long> getPipe2BytesAccumulated() {
146149

147150
private long buildTabletInsertionBuffer(final TabletInsertionEvent event) throws IOException {
148151
long estimateSize;
149-
ByteBuffer buffer = null;
152+
final ByteBuffer buffer;
150153
if (event instanceof PipeInsertNodeTabletInsertionEvent) {
151154
final PipeInsertNodeTabletInsertionEvent pipeInsertNodeTabletInsertionEvent =
152155
(PipeInsertNodeTabletInsertionEvent) event;

0 commit comments

Comments
 (0)