(cqlsh) show partial trace if incomplete after max_trace_wait

patch by Carl Yeksigian; reviewed by Paulo Motta for CASSANDRA-7645
This commit is contained in:
Carl Yeksigian 2015-04-24 11:00:23 -04:00 committed by Aleksey Yeschenko
parent a85afbc7a8
commit 626ac94cd5
2 changed files with 8 additions and 0 deletions

View File

@ -1,9 +1,14 @@
2.1.12
* (cqlsh) show partial trace if incomplete after max_trace_wait (CASSANDRA-7645)
2.1.11
* Fix mmap file segment seeking to EOF (CASSANDRA-10478)
* Allow LOCAL_JMX to be easily overridden (CASSANDRA-10275)
* Mark nodes as dead even if they've already left (CASSANDRA-10205)
* Update internal python driver used by cqlsh (CASSANDRA-10161, CASSANDRA-10507)
2.1.10
* Bulk Loader API could not tolerate even node failure (CASSANDRA-10347)
* Avoid misleading pushed notifications when multiple nodes

View File

@ -1069,6 +1069,9 @@ class Shell(cmd.Cmd):
if self.tracing_enabled:
if stmt.trace:
print_trace(self, stmt.trace)
elif stmt.trace_id:
self.writeresult("This statement trace may be incomplete", color=RED)
self.show_session(stmt.trace_id)
else:
msg = "Statement trace did not complete within %d seconds" % (self.session.max_trace_wait)
self.writeresult(msg, color=RED)