cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefania (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-12736) Update the bundled python driver on trunk
Date Tue, 04 Oct 2016 08:40:21 GMT

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

Stefania commented on CASSANDRA-12736:
--------------------------------------

The reason for the test hanging is that for some inserts no callback is called. 

I still don't know why commit {{d8d0456}} causes this when running against 4.0, whilst it
is perfectly fine when running against 3.X, however I have found the reason when using the
driver at the latest cassandra_test version and it seems to be fixed locally, once the fix
is applied. The problem is [this commit|https://github.com/datastax/python-driver/commit/8850ad3b6114debb7e95d4e1e5f232e03d652b0f]:
for a batch statement containing prepared statements, {{self.prepared_statement}} is None
when we handle a re-prepare answer, cc [~aholmber]. 

I've relaunched the tests using this driver branch: https://github.com/stef1927/python-driver/tree/12736.

|[patch|https://github.com/stef1927/cassandra/commits/12736-cqlsh]|[cqlsh tests|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-12736-cqlsh-cqlsh-tests/]|

I've also made cqlsh copy-from more robust to error callbacks not invoked: if the parent process
detects no activity in 90 seconds, it will abort. We currently also don't set any request
timeout, we should probably use a very high timeout of 60 seconds. Please note: I've *temporarily*
enabled debug logging in the driver and changed {{self.shell.printerr}} with {{self.printmsg}}
because the test does not print stderr. These should not be committed in the final patch.

Let's see if the Jenkins results are fine now.


> Update the bundled python driver on trunk
> -----------------------------------------
>
>                 Key: CASSANDRA-12736
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12736
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Philip Thompson
>            Assignee: Stefania
>              Labels: cqlsh
>             Fix For: 4.x
>
>
> Trunk was recently updated to be version 4.0. The bundled python driver that cqlsh uses
has a bug where it fails to connect to a C* server with a major version number greater than
3. The driver was fixed upstream, and we should pull in the fix.
> [~pauloricardomg] or [~stefania]?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message