使用python Cassandra dri在Cassandra中写入超时错误

2024-09-22 14:23:36 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个单节点集群,当我执行以下查询时,我得到以下错误

DELETE FROM issuetable WHERE "partitionId"='1';

**

  • 错误

**:

WriteTimeout: Error from server: code=1100 [Coordinator node timed 
out waiting for replica nodes' responses] message="Operation timed out 
- received only 0 responses." info={'received_responses': 0, 
'required_responses': 1, 'consistency': 'QUORUM'}

根据datastax文档(https://datastax.github.io/python-driver/api/cassandra.html),他们提到在cassandra.yaml中增加write_request_timeout_in_ms

问题:

1)为什么会出现这种错误?根据我的表(issuetable),该分区下只有84个条目。你知道吗

2)这应该在客户端还是服务器端解决?你知道吗


Tags: from节点错误集群responsesoutwheredelete