This is an automated email from the ASF dual-hosted git repository.

brandonwilliams pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 3ed723b870 Force flush during testFlushSize
3ed723b870 is described below

commit 3ed723b8700c47026849d11fe599d4e7b48ff65e
Author: Brandon Williams <brandonwilli...@apache.org>
AuthorDate: Tue Aug 1 09:52:37 2023 -0500

    Force flush during testFlushSize
    
    Patch by brandonwilliams; reviewed by edimitrova for CASSANDRA-18710
---
 test/unit/org/apache/cassandra/io/DiskSpaceMetricsTest.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/unit/org/apache/cassandra/io/DiskSpaceMetricsTest.java 
b/test/unit/org/apache/cassandra/io/DiskSpaceMetricsTest.java
index 3f65d8c485..e2f49e9696 100644
--- a/test/unit/org/apache/cassandra/io/DiskSpaceMetricsTest.java
+++ b/test/unit/org/apache/cassandra/io/DiskSpaceMetricsTest.java
@@ -109,6 +109,7 @@ public class DiskSpaceMetricsTest extends CQLTester
         for (int i = 0; i < 3; i++)
             insertN(KEYSPACE_PER_TEST, cfs, 1000, 55);
 
+        cfs.forceBlockingFlush(ColumnFamilyStore.FlushReason.UNIT_TESTS);
         int totalSize = 0;
         final Set<SSTableReader> liveSSTables = cfs.getLiveSSTables();
         for (SSTableReader rdr : liveSSTables)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to