Github user jonmeredith commented on a diff in the pull request:
https://github.com/apache/cassandra/pull/279#discussion_r225639660
--- Diff:
test/burn/org/apache/cassandra/utils/memory/LongBufferPoolTest.java ---
@@ -129,16 +165,22 @@ void testOne() throws Exception
return;
}
- BufferPool.put(buffer);
- burn.add(buffer);
+ // 50/50 chance of returning the buffer from the
producer thread, or
+ // pass it on to the consumer.
+ if (rand.nextBoolean()) {
--- End diff --
fixed
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]