kallaspriit / Cassandra-PHP-Client-Library

Cassandra PHP-based client library for managing and querying your Cassandra cluster
http://cassandra-php-client-library.com
103 stars 25 forks source link

exception 'CassandraMaxRetriesException' with message 'Failed calling "batch_mutate" the maximum of 5 times' #26

Open cybc16 opened 11 years ago

cybc16 commented 11 years ago

Hi,

Sometimes, I am getting the following error when inserting data to cassandra using cpcl. Did i miss any configuration? Thanks for help.

exception 'CassandraMaxRetriesException' with message 'Failed calling "batch_mutate" the maximum of 5 times' in /test/prjcv/htdocs/test/extensions/cpcl684f89b/Cassandra.php:1004 Stack trace:

0 /test/prjcv/htdocs/test/extensions/cpcl684f89b/Cassandra.php(2561): Cassandra->call('batch_mutate', Array, 1)

1 /test/prjcv/htdocs/test/extensions/cpcl684f89b/CassandraModel.php(420): CassandraColumnFamily->set('11047793', Array, NULL)

2 /test/prjcv/htdocs/test/controllers/ErrorController.php(85): CassandraModel->save('11047793')

devmario commented 11 years ago

mee too. on hiphop but somtime occur

babupt commented 10 years ago

This issue could come up if you try to push invalid data. I faced this issue while trying to insert data into to a DateType column, where the Date value was not valid. This was the case, when I was trying to move data from a legacy database having a table with few rows with junk characters (after effect of a corruption).