cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Moses Dinakaran <mosesdinaka...@gmail.com>
Subject Batch_Mutate throws Uncaught exception
Date Thu, 27 May 2010 08:45:29 GMT
Hi,



I am trying to use batch_mutate() with PHP Thrift. I was getting the
following error.





*Fatal error*:  Uncaught exception 'cassandra_InvalidRequestException'
in CORE/php/phpcassa/thrift/packages/cassandra/Cassandra.php:4869

Stack trace:

#0 CORE/php/phpcassa/thrift/packages/cassandra/Cassandra.php(777):
cassandra_Cassandra_batch_mutate_result->read(Object(TBinaryProtocolAccelerated))



The version is *Cassandra 0.6*

$client->batch_mutate($this->keyspace, $mutation_map, $this
->write_consistency_level);



Here is my mutation map, Any idea on what was going wrong.

------------------------------
array(1) {

  ["cache_pages"]=>

  array(1) {

    ["Page"]=>

    array(2) {

      [0]=>

      object(cassandra_Mutation)#32 (2) {

        ["column_or_supercolumn"]=>

        object(cassandra_ColumnOrSuperColumn)#31 (2) {

          ["column"]=>

          object(cassandra_Column)#30 (3) {

            ["name"]=>

            string(2) "id"

            ["value"]=>

            int(1)

            ["timestamp"]=>

            int(1274949222)

          }

          ["super_column"]=>

          NULL

        }

        ["deletion"]=>

        NULL

      }

      [1]=>

      object(cassandra_Mutation)#35 (2) {

        ["column_or_supercolumn"]=>

        object(cassandra_ColumnOrSuperColumn)#34 (2) {

          ["column"]=>

          object(cassandra_Column)#33 (3) {

            ["name"]=>

            string(4) "hash"

            ["value"]=>

            string(15) "d930517baf47237"

            ["timestamp"]=>

            int(1274949222)

          }

          ["super_column"]=>

          NULL

        }

        ["deletion"]=>

        NULL

      }

    }

  }

}


------------------------------





Thanks in Advance,

Moses.

Mime
View raw message