【发布时间】:2020-07-21 09:49:09
【问题描述】:
我收到以下错误。
cassandra.ReadTimeOut: Error from server: code =1200 [Coordinator node timed out waiting for replica nodes' responses] message = Operation timed out - received only 0 responses." info={consistency: 'LOCAL_ONE',required_responses": 1, 'received_responses": 0}
这是它正在运行的查询
query = "select col1,col2,col3,col4 from table where timestamp >= last_hour and <= current_hour ALLOW FILTERING"
last_hour 和 current_hour 是获取当前时间和过去 1 小时时间的变量。
那我做
queryResult = session.execute_async(query)
并收到错误。
它有时只是成功运行,而有时它会抛出该错误。
【问题讨论】: