我正在使用 cassandra node js 驱动程序,但收到以下错误:
error: Database error found %s . On selectAllJobs() call
{ name: 'ResponseError',
message: 'Operation timed out - received only 0 responses.',
info: 'Represents an error message from the server',
code: 4608,
consistencies: 1,
received: 0,
blockFor: 1,
isDataPresent: 0,
query: 'SELECT * FROM cron_tasks WHERE type =? AND starts < ? ALLOW FILTERING ;' }
当我移植到新的 AWS 实例时发生此错误。早些时候,一切都很顺利。
Cassandra 版本:
[cqlsh 4.1.1 | Cassandra 2.0.12 | CQL spec 3.1.1 | Thrift protocol 19.39.0]
最佳答案
Read_timeout错误意味着查询的协调器不知道请求是成功还是失败,所以它只能告诉客户端请求超时。
在您的情况下,这意味着查询协调器在内部将请求发送到副本,但副本没有及时响应。
您可以enable query tracing and execute in cqlsh了解为什么会发生这种情况。
您可以阅读有关 how Cassandra deals with replica failure 的更多信息.
关于node.js - Cassandra:操作超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29207024/