Github user dineshjoshi commented on a diff in the pull request:
https://github.com/apache/cassandra/pull/279#discussion_r226129933
--- Diff:
test/burn/org/apache/cassandra/utils/memory/LongBufferPoolTest.java ---
@@ -327,24 +371,35 @@ BufferCheck sample()
return checks.get(index);
}
-
- private int sum1toN(int n)
- {
- return (n * (n + 1)) / 2;
- }
}));
}
- boolean first = true;
while (!latch.await(10L, TimeUnit.SECONDS))
{
- if (!first)
- BufferPool.assertAllRecycled();
- first = false;
+ int stalledThreads = 0;
+ int doneThreads = 0;
+
for (AtomicBoolean progress : makingProgress)
{
- assert progress.get();
- progress.set(false);
+ if (progress.getAndSet(false) == false)
--- End diff --
```suggestion
if (!progress.getAndSet(false))
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]