You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2022/01/14 17:56:04 UTC

[cassandra-dtest] branch trunk updated: add test for starting with relative dirs

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-dtest.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6e756b3  add test for starting with relative dirs
6e756b3 is described below

commit 6e756b31f1c3dbeb34a12ff8d999ff992f8d29b1
Author: Brandon Williams <br...@apache.org>
AuthorDate: Tue Dec 7 14:30:25 2021 -0600

    add test for starting with relative dirs
    
    Patch by brandonwilliams, reviewed by bereng for CASSANDRA-17084
---
 configuration_test.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/configuration_test.py b/configuration_test.py
index ad875cb..235cf7c 100644
--- a/configuration_test.py
+++ b/configuration_test.py
@@ -2,6 +2,7 @@ import os
 import logging
 import parse
 import pytest
+import tempfile
 
 from cassandra.concurrent import execute_concurrent_with_args
 
@@ -104,6 +105,19 @@ class TestConfiguration(Tester):
         write_to_trigger_fsync(session, 'ks', 'tab')
         assert commitlog_size(node) > init_size, "ALTER KEYSPACE was not respected"
 
+    def test_relative_paths(self):
+        """
+        @jira_ticket CASSANDRA-17084
+        """
+        self.cluster.populate(1)
+        node1 = self.cluster.nodelist()[0]
+        cassdir = tempfile.mkdtemp()
+        os.mkdir(os.path.join(cassdir, 'bin'))
+        os.chdir(cassdir)
+        node1.set_configuration_options({'commitlog_directory': 'bin/../data/commitlog', 'data_file_directories': ['bin/../data/data']})
+        self.cluster.start()
+        self.cluster.stop()
+
     def overlapping_data_folders(self):
         """
         @jira_ticket CASSANDRA-10902

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