Hi,
I'm writing a Ruby driver for the CQL 3 binary protocol (http://github.com/iconara/cql-rb) and there are a few things that I can't get to work properly:
* TRUNCATE commands block for around a minute and then return error #4099 "Error during truncate: Truncate timed out - received only 0 responses". It doesn't seem to matter which consistency level I run the command with, it always times out. The table I'm trying to truncate exists (if it hadn't I would have received another error -- I've checked). The exact CQL I send is TRUNCATE users with consistency level ONE
* BACH times similarily to TRUNCATE, but it responds with a little more information: the error is #4352 "Operation timed out - received only 0 responses." and the extra details (here as a Ruby hash): {:cl=>:one, :received=>0, :blockfor=>1, :write_type=>"BATCH_LOG"}. The exact CQL I send is
BEGIN BATCH
INSERT INTO users (user_name, email) VALUES ('phil', 'phil@heck.com')
INSERT INTO users (user_name, email) VALUES ('sue', 'sue@inter.net')
APPLY BATCH
with consistency level ONE.
All other CQL commands I've tried seem to work fine (you can see my whole integration test suite here: https://github.com/iconara/cql-rb/blob/master/spec/integration/integration_spec.rb)
yours
Theo
