Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ public synchronized void releaseAllReservedMemory() {
}

@Override
public Pair<Long, Long> releaseMemoryVirtually(final long size) {
public synchronized Pair<Long, Long> releaseMemoryVirtually(final long size) {
return super.releaseMemoryVirtually(size);
}

@Override
public void reserveMemoryVirtually(
public synchronized void reserveMemoryVirtually(
final long bytesToBeReserved, final long bytesAlreadyReserved) {
super.reserveMemoryVirtually(bytesToBeReserved, bytesAlreadyReserved);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
import static org.apache.iotdb.db.queryengine.common.QueryId.MOCK_QUERY_ID;
import static org.apache.iotdb.db.queryengine.execution.fragment.FragmentInstanceContext.createFragmentInstanceContext;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

Expand Down Expand Up @@ -149,14 +148,12 @@ public void testTVListOwnerTransfer() throws InterruptedException {
}
} finally {
// Restore original System.out
System.setErr(systemOut);
System.setOut(systemOut);

// should not contain warn message: "The memory cost to be released is larger than the memory
// cost of memory block"
String capturedOutput = logPrint.toString();
assertFalse(
"Should not contain warning message",
capturedOutput.contains("The memory cost to be released is larger than the memory"));
assertTrue(capturedOutput.isEmpty());
}
}

Expand Down
Loading