php-cassandra-binary icon indicating copy to clipboard operation
php-cassandra-binary copied to clipboard

Uncaught exception 'Exception' with message 'Reading while at end of stream'

Open samuel4x4 opened this issue 10 years ago • 0 comments

PHP Fatal error: Uncaught exception 'Exception' with message 'Reading while at end of stream' in my-project/vendor/evseevnn/php-cassandra-binary/src/Protocol/Response/DataStream.php:40 Stack trace: #0 my-project/vendor/evseevnn/php-cassandra-binary/src/Protocol/Response/DataStream.php(154): evseevnn\Cassandra\Protocol\Response\DataStream->read(29801) #1 my-project/vendor/evseevnn/php-cassandra-binary/src/Protocol/Response.php(131): evseevnn\Cassandra\Protocol\Response\DataStream->readString() #2 my-project/vendor/evseevnn/php-cassandra-binary/src/Protocol/Response.php(164): evseevnn\Cassandra\Protocol\Response->evseevnn\Cassandra\Protocol{closure}(Object(evseevnn\Cassandra\Protocol\Response\DataStream)) #3 my-project/vendor/evseevnn/php-cassandra-binary/src/Protocol/Response.php(50): evseevnn\Cassandra\Protocol\Response->getErrorData() #4 my-project/vendor/evseevnn/php-cassandra-binary/src/Database.php(199): evseevnn\Cassandra\Pro in my-project/vendor/evseevnn/php-cassandra-binary/src/Protocol/Response/DataStream.php on line 40

It happens when I'm trying to insert for example 200 batches of 1200 entries each.

My environment:

  • PHP 5.5.0
  • cqlsh 4.1.1
  • Cassandra 2.0.11
  • CQL spec 3.1.1
  • Thrift protocol 19.39.0
  • Java 1.7.0_71

Do you have any idea if this is a bug, or how can I fix it? Thanks a lot!

samuel4x4 avatar Jan 26 '15 14:01 samuel4x4