duoshuo / php-cassandra

php Cassandra driver which support Protocol v3 (Cassandra 2.1) and asynchronous requests
MIT License
153 stars 53 forks source link

Write_timeout #62

Closed thanh-taro closed 9 years ago

thanh-taro commented 9 years ago

I met this issue when I run a php thread with Cassandra:

Write_timeout. Error data: array ( 'consistency' => 3166064, 'node' => 1701994868, 'replica' => 1768910368, 'writeType' => 'med out - received only 0 responses.' . "\0" . '' . "\0" . '' . "\0" . '' . "\0" . '' . "\0" . '' . "\0" . '' . "\0" . '' . "\0" . '' . "\0" . 'BATCH', )

Can you explain why and how to fix it?

thanh-taro commented 9 years ago

By the way, I'm using BATCH to UPDATE and INSERT.

thanh-taro commented 9 years ago

Ok, I figured out. Just increase the timeout in cassandra.yaml file. We can close this.