Class BufferPoolTest
java.lang.Object
org.apache.kafka.clients.producer.internals.BufferPoolTest
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidteardown()voidVerify that a failed allocation attempt due to not enough memory finishes soon after the maxBlockTimeMs.voidTest if BufferExhausted exception is thrown when there is not enough memory to allocate and the elapsed time is greater than the max specified block time.voidTest that we cannot try to allocate more memory than we have in the whole poolvoidvoidTest if the waiter that is waiting on availability of more memory is cleaned up when a timeout occursvoidTest if the waiter that is waiting on availability of more memory is cleaned up when an interruption occursvoidvoidvoidTest that delayed allocation blocksvoidvoidTest the simple non-blocking allocation pathsvoidThis test creates lots of threads that hammer on the pool
-
Constructor Details
-
BufferPoolTest
public BufferPoolTest()
-
-
Method Details
-
teardown
@AfterEach public void teardown() -
testSimple
-
testCantAllocateMoreMemoryThanWeHave
-
testDelayedAllocation
-
testBufferExhaustedExceptionIsThrown
-
testBlockTimeout
-
testCleanupMemoryAvailabilityWaiterOnBlockTimeout
-
testCleanupMemoryAvailabilityWaiterOnInterruption
-
testCleanupMemoryAvailabilityOnMetricsException
-
testStressfulSituation
-
testLargeAvailableMemory
-
outOfMemoryOnAllocation
@Test public void outOfMemoryOnAllocation() -
testCloseAllocations
-
testCloseNotifyWaiters
-