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

Mikhail Stepura commented on CASSANDRA-7222:
--------------------------------------------

We can't fully rely on {{duration}}, see CASSANDRA-6317, but I'll take a look 
what can be improved.

> cqlsh does not wait for tracing to complete before printing
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-7222
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7222
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Tyler Hobbs
>            Assignee: Mikhail Stepura
>             Fix For: 2.0.9
>
>
> cqlsh currently sleeps 0.5 seconds before fetching trace info.  Instead, it 
> should fetch the {{system_traces.sessions}} row in a loop until the 
> {{duration}} column is set (maybe with a total timeout of 30s).  After the 
> {{duration}} column is set, it's safe to fetch the rows from 
> {{system_traces.events}}.
> This is already fixed in 2.1 by the switch to the python driver, we just need 
> to fix 2.0.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to