卡桑德拉:操作超时

我正在使用cassandra节点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的新实例时发生此错误。 早些时候,一切都很顺利。

卡桑德拉版本:

 [cqlsh 4.1.1 | Cassandra 2.0.12 | CQL spec 3.1.1 | Thrift protocol 19.39.0] 

Read_timeout错误意味着查询的协调者不知道请求是成功还是失败,所以它可以告诉客户端请求超时。

在你的情况下,这意味着查询的协调者在内部将请求发送到副本,但副本没有及时响应。

您可以启用查询跟踪并在cqlsh中执行,以了解为什么会发生这种情况。

您可以阅读关于Cassandra如何处理副本失败的更多信息。