You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by 鄢来琼 <la...@gtafe.com> on 2015/07/31 03:33:31 UTC

答复: query statement return empty

Using java/C# rewrite the test case, the results are consistency.
Is there any problem for the python driver?

发件人: 鄢来琼
发送时间: Friday, July 31, 2015 9:03 AM
收件人: 'user@cassandra.apache.org'
主题: query statement return empty

Hi ALL

The result of “select * from t_test where id = 1” statement is not consistency,
Could you tell me why?

test case,
I = 0;
While I < 5:
    result = cassandra_session.execute(“select ratio from t_test where id = 1”)
print result

testing result:
[Row(ratio=Decimal('0.000'))]
[]
[Row(ratio=Decimal('0.000'))]
[Row(ratio=Decimal('0.000'))]
[Row(ratio=Decimal('0.000'))]

Cassandra cluster:
My Cassandra version is 2.12,
the Cassandra cluster has 9 nodes.
The python driver version is 2.6

I have tested both the AsyncoreConnection and LibevConnection, the results are in consistency.

Thanks a lot.

Peter