Skip to content

Commit

Permalink
improve robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
Pengzna committed Oct 29, 2024
1 parent b77346b commit d00a8df
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.apache.hugegraph.memory.MemoryManager;
import org.apache.hugegraph.memory.pool.MemoryPool;
import org.apache.hugegraph.memory.pool.impl.TaskMemoryPool;
import org.apache.hugegraph.memory.util.RoundUtil;
import org.apache.hugegraph.testutil.Assert;
import org.apache.hugegraph.util.Bytes;
import org.junit.After;
Expand Down Expand Up @@ -70,6 +71,9 @@ public class MemoryManageTest {
public void setUp() {
memoryManager = MemoryManager.getInstance();
MemoryManager.setMemoryMode(MemoryManager.MemoryMode.ENABLE_OFF_HEAP_MANAGEMENT);
MemoryManager.setMaxMemoryCapacityInBytes(Bytes.GB);
MemoryManager.setMaxMemoryCapacityForOneQuery(Bytes.MB * 100);
RoundUtil.setAlignment(8);
query1MemoryPool = memoryManager.addQueryMemoryPool();
query2MemoryPool = memoryManager.addQueryMemoryPool();

Expand Down

0 comments on commit d00a8df

Please sign in to comment.