Skip to content
Permalink
Browse files
Add if to avoid assertTrue error (#7271)
JackieTien97 committed 29 days ago
1 parent 6f10996 commit 35541f457afa7e3075893c633bdb1ea8765a399c
Showing 1 changed file with 5 additions and 1 deletion.
return serde.serialize(pair.left);
}
void acknowledgeTsBlock(int startSequenceId, int endSequenceId) {
long freedBytes = 0L;
synchronized (this) {
if (aborted || closed) {
return;
}
Iterator<Entry<Integer, Pair<TsBlock, Long>>> iterator =
sequenceIdToTsBlock.entrySet().iterator();
while (iterator.hasNext()) {

COLLECTOR-SAHAB / covering test: SinkHandleTest

iterator.next.value.left=org.apache.iotdb.tsfile.read.common.block.TsBlock$MockitoMock$178576558 only occurs in the patched version.

COLLECTOR-SAHAB / covering test: SinkHandleTest

iterator.next.value.left=org.apache.iotdb.tsfile.read.common.block.TsBlock$MockitoMock$657902505 only occurs in the original version.

Entry<Integer, Pair<TsBlock, Long>> entry = iterator.next();
if (entry.getKey() < startSequenceId) {
continue;
}
if (entry.getKey() >= endSequenceId) {
break;
}
freedBytes += entry.getValue().right;
bufferRetainedSizeInBytes -= entry.getValue().right;
iterator.remove();
logger.info("ack TsBlock {}.", entry.getKey());
}
}
if (isFinished()) {
sinkHandleListener.onFinish(this);
}
localMemoryManager.getQueryPool().free(localFragmentInstanceId.getQueryId(), freedBytes);
// there may exist duplicate ack message in network caused by caller retrying, if so duplicate
// ack message's freedBytes may be zero
if (freedBytes > 0) {
localMemoryManager.getQueryPool().free(localFragmentInstanceId.getQueryId(), freedBytes);
}
}

public TEndPoint getRemoteEndpoint() {

0 comments on commit 35541f4

Please sign in to comment.