[
https://issues.apache.org/jira/browse/CASSANDRA-11850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15361976#comment-15361976
]
Stefania commented on CASSANDRA-11850:
--------------------------------------
2.1 tests are fine but in 2.2+ we have some behavioral changes in the driver
that cause problems, mostly related to utf-8 encoding and
[PYTHON-458|https://datastax-oss.atlassian.net/browse/PYTHON-458] /
CASSANDRA-10686.
Some fixes went into the patches linked above, whilst the fixes in the dtest
code are [here|https://github.com/stef1927/cassandra-dtest/tree/11850]. I've
relaunched the tests.
[~pauloricardomg], given that PYTHON-458 is now available, are we still
expecting an operation timeout and schema mismatch warning in
[{{test_refresh_schema_on_timeout_error}}|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-11850-cqlsh-2.2-cqlsh-tests/lastCompletedBuild/cython=no/testReport/cqlsh_tests.cqlsh_tests/TestCqlsh/test_refresh_schema_on_timeout_error/]?
I added the following in cqlsh
[{{perform_simple_stement}}|https://github.com/stef1927/cassandra/commit/ba02cd1b96e329b533141cf78c43eb960e5d4d61#diff-1cce67f7d76864f07aaf4d986d6fc051R1256]
but {{future.is_schema_agreed}} is always true (I think the driver refreshes
the metadata before returning the statement result):
{code}
future = self.session.execute_async(statement, trace=self.tracing_enabled)
result = future.result()
if not future.is_schema_agreed:
self.refresh_schema_metadata_best_effort()
{code}
> cannot use cql since upgrading python to 2.7.11+
> ------------------------------------------------
>
> Key: CASSANDRA-11850
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11850
> Project: Cassandra
> Issue Type: Bug
> Components: CQL
> Environment: Development
> Reporter: Andrew Madison
> Assignee: Stefania
> Labels: cqlsh
> Fix For: 2.2.x, 3.0.x, 3.x
>
>
> OS: Debian GNU/Linux stretch/sid
> Kernel: 4.5.0-2-amd64 #1 SMP Debian 4.5.4-1 (2016-05-16) x86_64 GNU/Linux
> Python version: 2.7.11+ (default, May 9 2016, 15:54:33)
> [GCC 5.3.1 20160429]
> cqlsh --version: cqlsh 5.0.1
> cassandra -v: 3.5 (also occurs with 3.0.6)
> Issue:
> when running cqlsh, it returns the following error:
> cqlsh -u dbarpt_usr01
> Password: *****
> Connection error: ('Unable to connect to any servers', {'odbasandbox1':
> TypeError('ref() does not take keyword arguments',)})
> I cleared PYTHONPATH:
> python -c "import json; print dir(json); print json.__version__"
> ['JSONDecoder', 'JSONEncoder', '__all__', '__author__', '__builtins__',
> '__doc__', '__file__', '__name__', '__package__', '__path__', '__version__',
> '_default_decoder', '_default_encoder', 'decoder', 'dump', 'dumps',
> 'encoder', 'load', 'loads', 'scanner']
> 2.0.9
> Java based clients can connect to Cassandra with no issue. Just CQLSH and
> Python clients cannot.
> nodetool status also works.
> Thank you for your help.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)