============================================== ERRORS ============================================== _____________________ ERROR at setup of TestCassandraStorage.test_content_add ______________________ cassandra_cluster = (['127.0.0.1'], 58071) @pytest.fixture(scope="session") def keyspace(cassandra_cluster): (hosts, port) = cassandra_cluster keyspace = os.urandom(10).hex() > create_keyspace(hosts, keyspace, port) swh/storage/tests/test_cassandra.py:153: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ swh/storage/cassandra/cql.py:104: in create_keyspace session.execute(query) cassandra/cluster.py:2618: in cassandra.cluster.Session.execute ??? _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E cassandra.InvalidRequest: Error from server: code=2200 [Invalid query] message="Java source compilation failed: E GENERATED SOURCE ERROR: line 1 (in generated source): The type java.lang.invoke.TypeDescriptor$OfField cannot be resolved. It is indirectly referenced from required .class files E E generated source: E package org.apache.cassandra.cql3.udf.gen.p14407b29c07a68bf03572eascii_bins_count_sfunc_8577467_1; E E import java.nio.ByteBuffer; E import java.util.*; E E import org.apache.cassandra.cql3.functions.JavaUDF; E import org.apache.cassandra.cql3.functions.UDFContext; E import org.apache.cassandra.transport.ProtocolVersion; E E import org.apache.cassandra.cql3.functions.types.TypeCodec; E import org.apache.cassandra.cql3.functions.types.TupleValue; E import org.apache.cassandra.cql3.functions.types.UDTValue; E E public final class C14407b29c07a68bf03572eascii_bins_count_sfunc_6501266_2 extends JavaUDF E { E public C14407b29c07a68bf03572eascii_bins_count_sfunc_6501266_2(TypeCodec<Object> returnCodec, TypeCodec<Object>[] argCodecs, UDFContext udfContext) E { E super(returnCodec, argCodecs, udfContext); E } E E protected ByteBuffer executeImpl(ProtocolVersion protocolVersion, List<ByteBuffer> params) E { E org.apache.cassandra.cql3.functions.types.TupleValue result = x14407b29c07a68bf03572eascii_bins_count_sfunc_261780_3( E (org.apache.cassandra.cql3.functions.types.TupleValue) super.compose(protocolVersion, 0, params.get(0)), E (String) super.compose(protocolVersion, 1, params.get(1)) E ); E return super.decompose(protocolVersion, result); E } E E protected Object executeAggregateImpl(ProtocolVersion protocolVersion, Object firstParam, List<ByteBuffer> params) E { E org.apache.cassandra.cql3.functions.types.TupleValue result = x14407b29c07a68bf03572eascii_bins_count_sfunc_261780_3( E (org.apache.cassandra.cql3.functions.types.TupleValue) firstParam, E (String) super.compose(protocolVersion, 1, params.get(0)) E ); E return result; E } E E private org.apache.cassandra.cql3.functions.types.TupleValue x14407b29c07a68bf03572eascii_bins_count_sfunc_261780_3(org.apache.cassandra.cql3.functions.types.TupleValue state, String bin_name) E { E E if (bin_name == null) { E state.setInt(0, state.getInt(0) + 1); E } E else { E Map<String, Integer> counters = state.getMap( E 1, String.class, Integer.class); E Integer nb = counters.get(bin_name); E if (nb == null) { E nb = 0; E } E counters.put(bin_name, nb + 1); E state.setMap(1, counters, String.class, Integer.class); E } E return state; E E } E } E " cassandra/cluster.py:4877: InvalidRequest ---------------------------------------- Captured log setup ---------------------------------------- WARNING cassandra.cluster:cql.py:89 Downgrading core protocol version from 66 to 65 for 127.0.0.1:58071. To avoid this, it is best practice to explicitly set Cluster(protocol_version) to the version supported by your cluster. http://datastax.github.io/python-driver/api/cassandra/cluster.html#cassandra.cluster.Cluster.protocol_version WARNING cassandra.cluster:cql.py:89 Downgrading core protocol version from 65 to 4 for 127.0.0.1:58071. To avoid this, it is best practice to explicitly set Cluster(protocol_version) to the version supported by your cluster. http://datastax.github.io/python-driver/api/cassandra/cluster.html#cassandra.cluster.Cluster.protocol_version ===================================== short test summary info ====================================== ERROR swh/storage/tests/test_cassandra.py::TestCassandraStorage::test_content_add - cassandra.Inv... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ================================= 108 deselected, 1 error in 4.44s =================================