[ 
https://issues.apache.org/jira/browse/CASSANDRA-16681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17367294#comment-17367294
 ] 

Gianluca Righetto commented on CASSANDRA-16681:
-----------------------------------------------

Without the modification, I've seen it cut pretty close too (meaning the last 
chunk got recycled just the before the latch timeout), but increasing the 
threads favors it.
But anything that causes a delay has the potential to fail that assertion 
because it's time based. There are many random choices going on in the test, if 
so it happens that many workers are queuing their buffers for their neighbours 
to release them, but their neighbours don't get scheduled to clear the queues, 
it has the potential to fail too.

My initial proposal consisted in reducing the ratio of queuing/direct release: 
https://github.com/grighetto/cassandra/pull/7/commits/aa3ba87f137f0ccba94957a1f100de3953b172bf
That also works for me, even with the increased number of threads.

Anyway, there might be other issues too, but I'm pretty sure CPU contention is 
playing a part on CircleCI because 
{{Runtime.getRuntime().availableProcessors()}} doesn't work properly there.

> org.apache.cassandra.utils.memory.LongBufferPoolTest - tests are flaky
> ----------------------------------------------------------------------
>
>                 Key: CASSANDRA-16681
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16681
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CI
>            Reporter: Ekaterina Dimitrova
>            Assignee: Brandon Williams
>            Priority: Normal
>             Fix For: 4.0, 4.0-rc
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Jenkins history:
> [https://jenkins-cm4.apache.org/job/Cassandra-4.0/50/testReport/junit/org.apache.cassandra.utils.memory/LongBufferPoolTest/testPoolAllocateWithRecyclePartially/history/]
> Fails being run in a loop in CircleCI:
> https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/844/workflows/945011f4-00ac-4678-89f6-5c0db0a40169/jobs/5008
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to