[ 
https://issues.apache.org/jira/browse/CASSANDRA-21857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry Konstantinov updated CASSANDRA-21857:
--------------------------------------------
    Description: 
https://ci-cassandra.apache.org/job/Cassandra-6.0/45/testReport/junit/cqlshlib.python3.8.jdk11.no_cython.x86_64.test.test_cqlsh_output/TestCqlshOutput/Tests___cqlsh_test_jdk11_python3_8___test_drop_keyspace_prompt_behavior/

{code}
self = <cqlshlib.test.test_cqlsh_output.TestCqlshOutput 
testMethod=test_drop_keyspace_prompt_behavior>

    def test_drop_keyspace_prompt_behavior(self):
        with cqlsh_testrun() as c:
            c.send("CREATE KEYSPACE test_normal WITH replication = {'class': 
'SimpleStrategy', 'replication_factor': 1};\n")
            c.read_to_next_prompt()
            c.send("CREATE KEYSPACE test_other WITH replication = {'class': 
'SimpleStrategy', 'replication_factor': 1};\n")
            c.read_to_next_prompt()
            c.send("CREATE KEYSPACE \"Test_Quoted\" WITH replication = 
{'class': 'SimpleStrategy', 'replication_factor': 1};\n")
            c.read_to_next_prompt()
    
            c.send("USE test_normal;\n")
            c.read_to_next_prompt()
    
            c.send("DROP KEYSPACE test_other;\n")
            c.read_to_next_prompt()
            c.send("\n")
            out_other = c.read_to_next_prompt()
            self.assertIn('test_normal', out_other.lower())
    
            c.send("DROP KEYSPACE test_normal;\n")
            c.read_to_next_prompt()
            c.send("\n")
            out_normal = c.read_to_next_prompt()
            self.assertNotIn('test_normal', out_normal.lower())
    
            c.send("USE \"Test_Quoted\";\n")
            c.read_to_next_prompt()
            c.send("DROP KEYSPACE IF EXISTS \"Test_Quoted\";\n")
            c.read_to_next_prompt()
            c.send("\n")
            out_quoted = c.read_to_next_prompt()
            self.assertNotIn('test_quoted', out_quoted.lower())
    
            # Arbitrary whitespace between DROP and KEYSPACE (and around the 
name) must still reset
            # the prompt (CASSANDRA-21548: the original startswith('drop 
keyspace') missed these).
            c.send("CREATE KEYSPACE test_spaces WITH replication = {'class': 
'SimpleStrategy', 'replication_factor': 1};\n")
            c.read_to_next_prompt()
            c.send("USE test_spaces;\n")
            c.read_to_next_prompt()
            c.send("DROP   KEYSPACE   test_spaces ;\n")
>           c.read_to_next_prompt()

test/test_cqlsh_output.py:687: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/run_cqlsh.py:277: in read_to_next_prompt
    return self.read_until(self.prompt, timeout=timeout, ptty_timeout=3, 
replace=[DEFAULT_SMM_SEQUENCE])
test/run_cqlsh.py:203: in read_until
    val = self.read(blksize, ptty_timeout)
test/run_cqlsh.py:171: in read_tty
    buf = os.read(self.childpty, blksize)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

signum = 14
frames = <frame at 0x7e1e336925b0, file 
'/home/cassandra/cassandra/pylib/cqlshlib/test/run_cqlsh.py', line 171, code 
read_tty>

    def raiser(signum, frames):
>       raise exc()
E       cqlshlib.test.run_cqlsh.TimeoutError

test/run_cqlsh.py:83: TimeoutError
{code}

  
was:https://ci-cassandra.apache.org/job/Cassandra-6.0/45/testReport/junit/cqlshlib.python3.8.jdk11.no_cython.x86_64.test.test_cqlsh_output/TestCqlshOutput/Tests___cqlsh_test_jdk11_python3_8___test_drop_keyspace_prompt_behavior/


> Flaky test: TestCqlshOutput.test_drop_keyspace_prompt_behavior
> --------------------------------------------------------------
>
>                 Key: CASSANDRA-21857
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21857
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Test/dtest/python
>            Reporter: Dmitry Konstantinov
>            Priority: Normal
>              Labels: green_ci
>
> https://ci-cassandra.apache.org/job/Cassandra-6.0/45/testReport/junit/cqlshlib.python3.8.jdk11.no_cython.x86_64.test.test_cqlsh_output/TestCqlshOutput/Tests___cqlsh_test_jdk11_python3_8___test_drop_keyspace_prompt_behavior/
> {code}
> self = <cqlshlib.test.test_cqlsh_output.TestCqlshOutput 
> testMethod=test_drop_keyspace_prompt_behavior>
>     def test_drop_keyspace_prompt_behavior(self):
>         with cqlsh_testrun() as c:
>             c.send("CREATE KEYSPACE test_normal WITH replication = {'class': 
> 'SimpleStrategy', 'replication_factor': 1};\n")
>             c.read_to_next_prompt()
>             c.send("CREATE KEYSPACE test_other WITH replication = {'class': 
> 'SimpleStrategy', 'replication_factor': 1};\n")
>             c.read_to_next_prompt()
>             c.send("CREATE KEYSPACE \"Test_Quoted\" WITH replication = 
> {'class': 'SimpleStrategy', 'replication_factor': 1};\n")
>             c.read_to_next_prompt()
>     
>             c.send("USE test_normal;\n")
>             c.read_to_next_prompt()
>     
>             c.send("DROP KEYSPACE test_other;\n")
>             c.read_to_next_prompt()
>             c.send("\n")
>             out_other = c.read_to_next_prompt()
>             self.assertIn('test_normal', out_other.lower())
>     
>             c.send("DROP KEYSPACE test_normal;\n")
>             c.read_to_next_prompt()
>             c.send("\n")
>             out_normal = c.read_to_next_prompt()
>             self.assertNotIn('test_normal', out_normal.lower())
>     
>             c.send("USE \"Test_Quoted\";\n")
>             c.read_to_next_prompt()
>             c.send("DROP KEYSPACE IF EXISTS \"Test_Quoted\";\n")
>             c.read_to_next_prompt()
>             c.send("\n")
>             out_quoted = c.read_to_next_prompt()
>             self.assertNotIn('test_quoted', out_quoted.lower())
>     
>             # Arbitrary whitespace between DROP and KEYSPACE (and around the 
> name) must still reset
>             # the prompt (CASSANDRA-21548: the original startswith('drop 
> keyspace') missed these).
>             c.send("CREATE KEYSPACE test_spaces WITH replication = {'class': 
> 'SimpleStrategy', 'replication_factor': 1};\n")
>             c.read_to_next_prompt()
>             c.send("USE test_spaces;\n")
>             c.read_to_next_prompt()
>             c.send("DROP   KEYSPACE   test_spaces ;\n")
> >           c.read_to_next_prompt()
> test/test_cqlsh_output.py:687: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> test/run_cqlsh.py:277: in read_to_next_prompt
>     return self.read_until(self.prompt, timeout=timeout, ptty_timeout=3, 
> replace=[DEFAULT_SMM_SEQUENCE])
> test/run_cqlsh.py:203: in read_until
>     val = self.read(blksize, ptty_timeout)
> test/run_cqlsh.py:171: in read_tty
>     buf = os.read(self.childpty, blksize)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> signum = 14
> frames = <frame at 0x7e1e336925b0, file 
> '/home/cassandra/cassandra/pylib/cqlshlib/test/run_cqlsh.py', line 171, code 
> read_tty>
>     def raiser(signum, frames):
> >       raise exc()
> E       cqlshlib.test.run_cqlsh.TimeoutError
> test/run_cqlsh.py:83: TimeoutError
> {code}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to