[ 
https://issues.apache.org/jira/browse/CASSANDRA-16861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17798700#comment-17798700
 ] 

Maxim Muzafarov commented on CASSANDRA-16861:
---------------------------------------------

I think the problem is still relevant. I can reproduce it on the trunk branch.
https://github.com/apache/cassandra/commit/08c46d09634ed4639246036b84caf817d14fa188
https://github.com/apache/cassandra-dtest/commit/24d6b291eeb8842fab22b5b3936539b66a036d86

{code:java}
===================================== test session starts 
=====================================
platform darwin -- Python 3.9.6, pytest-7.3.1, pluggy-1.0.0
rootdir: /Users/m/pycharm/cassandra-dtest
configfile: pytest.ini
plugins: flaky-3.7.0, repeat-0.9.1, timeout-1.4.2
timeout: 900.0s
timeout method: signal
timeout func_only: False
collected 1 item                                                                
                                                                                
                                                                                
                                                                       

compression_test.py F                                                           
                                                                                
                                                                                
                                                                 [100%]  
===================================== FAILURES 
===================================== 
____________________________________________________________________________________
TestCompression.test_compression_cql_options 
____________________________________________________________________________________


self = <compression_test.TestCompression object at 0x1051e1790>

    @since("3.0")
    def test_compression_cql_options(self):
        """
        @jira_ticket CASSANDRA-8384
        using new cql create table syntax to configure compression
        """
        cluster = self.cluster
        cluster.populate(1).start()
        [node] = cluster.nodelist()
    
        session = self.patient_cql_connection(node)
        create_ks(session, 'ks', 1)
        session.execute("""
            create table compression_opts_table
                (id uuid PRIMARY KEY )
                WITH compression = {
                    'class': 'DeflateCompressor',
                    'chunk_length_in_kb': 256
                }
                AND crc_check_chance = 0.25;
            """)
    
        session.cluster.refresh_schema_metadata()
        meta = 
session.cluster.metadata.keyspaces['ks'].tables['compression_opts_table']
        assert 'org.apache.cassandra.io.compress.DeflateCompressor' == 
meta.options['compression']['class']
        assert '256' == meta.options['compression']['chunk_length_in_kb']
        assert_crc_check_chance_equal(session, "compression_opts_table", 0.25)
    
        warn = node.grep_log("The option crc_check_chance was deprecated as a 
compression option.")
        assert len(warn) == 0
>       session.execute("""
            alter table compression_opts_table
                WITH compression = {
                    'class': 'DeflateCompressor',
                    'chunk_length_in_kb': 256,
                    'crc_check_chance': 0.6
                }
            """)

compression_test.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
cassandra/cluster.py:2618: in cassandra.cluster.Session.execute
    ??? 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>   ???
E   cassandra.protocol.ConfigurationException: <Error from server: code=2300 
[Query invalid because of configuration issue] message="Unknown compression 
options crc_check_chance">

cassandra/cluster.py:4894: ConfigurationException
{code}

> Fix flaky test test_compression_cql_options
> -------------------------------------------
>
>                 Key: CASSANDRA-16861
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16861
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CI
>            Reporter: Ekaterina Dimitrova
>            Priority: Normal
>             Fix For: 4.0, 5.x
>
>
> While working on another ticket, I saw test_compression_cql_options failing 
> (which is not the case in Jenkins) but the Circle CI multiplexer showed it as 
> being flaky:
> [https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/1082/workflows/8dacef5d-46f4-4b59-a8f7-08824bf1180f/jobs/6407/tests#failed-test-0]
> {code:java}
>         sstables = self.get_sstables(table='compression_opts_table', 
> indexes=list())
>         sstable_paths = self.get_table_paths('compression_opts_table')
>         found = False
>         for sstable_path in sstable_paths:
>             sstable = os.path.join(sstable_path, 
> sstables['compression_opts_table'][1])
>             if os.path.exists(sstable):
>                 assert 'DEFLATE' == self._get_compression_type(sstable)
>                 found = True
> >       assert found
> E       assert False
> compression_test.py:118: AssertionError
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to