samueldlightfoot commented on code in PR #286:
URL: https://github.com/apache/cassandra-dtest/pull/286#discussion_r2840691250
##########
largecolumn_test.py:
##########
@@ -69,11 +71,18 @@ def test_cleanup(self):
# Now run the full stack to warm up internal caches/pools
LARGE_COLUMN_SIZE = 1024 * 1024 * 63
self.stress_with_col_size(cluster, node1, LARGE_COLUMN_SIZE)
+ # Generational ZGC (JDK 21) only processes PhantomReferences during
major collections
+ # which may not run during short tests. Force a GC; sleep lets the
async Cleaner
+ # thread finish decrementing TOTAL_CAPACITY before we measure.
+ subprocess.check_call(['jcmd', str(node1.pid), 'GC.run'])
+ time.sleep(1)
after1stLargeStress = self.directbytes(node1)
logger.info("After 1st large column stress, direct memory:
{0}".format(after1stLargeStress))
# Now run the full stack to see how much memory is allocated for the
second "large" columns request
self.stress_with_col_size(cluster, node1, LARGE_COLUMN_SIZE)
+ subprocess.check_call(['jcmd', str(node1.pid), 'GC.run'])
Review Comment:
Agreed to increase timeout from 1s to 3s due to no simple way to ensure the
cleaner has finished
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]