You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by bl...@apache.org on 2021/01/20 16:10:10 UTC

[cassandra-dtest] branch CASSANDRA-14793 created (now 2a99ca6)

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

blerer pushed a change to branch CASSANDRA-14793
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git.


      at 2a99ca6  Update tests for CASSANDRA-14793

This branch includes the following new commits:

     new 2a99ca6  Update tests for CASSANDRA-14793

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[cassandra-dtest] 01/01: Update tests for CASSANDRA-14793

Posted by bl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

blerer pushed a commit to branch CASSANDRA-14793
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git

commit 2a99ca6777d5be746160d078215544354cdc7709
Author: Benjamin Lerer <b....@gmail.com>
AuthorDate: Mon Sep 28 14:23:44 2020 +0200

    Update tests for CASSANDRA-14793
---
 disk_balance_test.py | 2 +-
 snapshot_test.py     | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/disk_balance_test.py b/disk_balance_test.py
index bfd3d8e..f1802de 100644
--- a/disk_balance_test.py
+++ b/disk_balance_test.py
@@ -140,7 +140,7 @@ class TestDiskBalance(Tester):
         node.compact()
         mbean = make_mbean('db', type='BlacklistedDirectories')
         with JolokiaAgent(node) as jmx:
-            jmx.execute_method(mbean, 'markUnwritable', [os.path.join(node.get_path(), 'data0')])
+            jmx.execute_method(mbean, 'markUnwritable', [os.path.join(node.get_path(), 'data1')])
 
         for k in range(0, 10000):
             query_c1c2(session, k)
diff --git a/snapshot_test.py b/snapshot_test.py
index 7328c18..6da49da 100644
--- a/snapshot_test.py
+++ b/snapshot_test.py
@@ -206,7 +206,10 @@ class TestArchiveCommitlog(SnapshotTester):
         node.nodetool(snapshot_cmd)
         tmpdirs = []
         base_tmpdir = safe_mkdtemp()
-        for x in range(0, self.cluster.data_dir_count):
+        data_dir_count = self.cluster.data_dir_count
+        if self.cluster.version() >= '4.0' and ks in ['system', 'system_schema']:
+            data_dir_count = 1
+        for x in range(0, data_dir_count):
             tmpdir = os.path.join(base_tmpdir, str(x))
             os.mkdir(tmpdir)
             # Copy files from the snapshot dir to existing temp dir


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