This is an automated email from the ASF dual-hosted git repository.
jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 05068c5ef1 add assertions for AllocationFailureCount (#13698)
05068c5ef1 is described below
commit 05068c5ef1b118a215aae99ec5dd4e481570eb01
Author: sullis <[email protected]>
AuthorDate: Thu Aug 15 22:22:21 2024 -0700
add assertions for AllocationFailureCount (#13698)
---
.../segment/local/io/writer/impl/MmapMemoryManagerTest.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git
a/pinot-segment-local/src/test/java/org/apache/pinot/segment/local/io/writer/impl/MmapMemoryManagerTest.java
b/pinot-segment-local/src/test/java/org/apache/pinot/segment/local/io/writer/impl/MmapMemoryManagerTest.java
index 3cba586282..acc5b17d12 100644
---
a/pinot-segment-local/src/test/java/org/apache/pinot/segment/local/io/writer/impl/MmapMemoryManagerTest.java
+++
b/pinot-segment-local/src/test/java/org/apache/pinot/segment/local/io/writer/impl/MmapMemoryManagerTest.java
@@ -28,7 +28,9 @@ import org.apache.pinot.segment.spi.memory.PinotDataBuffer;
import org.apache.pinot.segment.spi.memory.PinotDataBufferMemoryManager;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
+import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
+import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
@@ -50,6 +52,16 @@ public class MmapMemoryManagerTest {
new File(_tmpDir).delete();
}
+ @BeforeMethod
+ public void beforeMethodAssertions() {
+ Assert.assertEquals(PinotDataBuffer.getAllocationFailureCount(), 0);
+ }
+
+ @AfterMethod
+ public void afterMethodAssertions() {
+ Assert.assertEquals(PinotDataBuffer.getAllocationFailureCount(), 0);
+ }
+
@Test
public void testLargeBlocks()
throws Exception {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]