【发布时间】:2016-10-14 03:36:46
【问题描述】:
我正在尝试使用 cqlsh 在 cassandra 中找出查询的响应时间。
我正在使用“tracing on”,然后在 cqlsh 中执行查询,但出现以下错误:
语句跟踪未在 10 秒内完成
这是我正在执行的查询:
test@cqlsh:test> TRACING on;
test@cqlsh:test> select * from test limit 1;
--- output row ---
Statement trace did not complete within 10 seconds
还有其他方法可以找出查询的响应时间吗?
为什么不显示跟踪,即使只请求了 1 行,我肯定会在一秒钟内得到?
【问题讨论】:
-
要么你的集群被水洗了,要么
test非常混乱。包括关于集群 (nodetool status) 的信息、您的密钥空间复制因子、tests 架构和来自nodetool tablestats的输出 -
我将 cassandra 从 2.0.17 升级到 2.1.15。这会引起@ChrisLohfink 的某种问题吗?
-
如果您收到超过 10 秒的响应,则可能从根本上破坏了某些东西。提供的信息很难说是什么