<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; User Favorites: iconara</title>
		<link><a href='http://www.datastax.com/support-forums/profile/iconara'>iconara</a></link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Sat, 18 May 2013 11:23:24 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>Theo on "CQL 3 TRUNCATE and BATCH times out"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-3-truncate-and-batch-times-out#post-8536</link>
			<pubDate>Sun, 20 Jan 2013 10:18:28 +0000</pubDate>
			<dc:creator>Theo</dc:creator>
			<guid isPermaLink="false">8536@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I see now that the CQL 3 protocol specification says that &#34;is ignored by some queries&#34; for example &#60;code&#62;TRUNCATE&#60;/code&#62;, so it doesn't seem like that could be the issue. &#60;/p&#62;
&#60;p&#62;For &#60;code&#62;BATCH&#60;/code&#62; I'm specifying the consistency level in the driver, since I'm writing a driver. I'm not using &#60;code&#62;WITH CONSISTENCY LEVEL&#60;/code&#62;. The command I send is exactly this:&#60;/p&#62;
&#60;p&#62;BEGIN BATCH&#60;br /&#62;
INSERT INTO users (user_name, email) VALUES ('phil', 'phil@heck.com')&#60;br /&#62;
INSERT INTO users (user_name, email) VALUES ('sue', 'sue@inter.net')&#60;br /&#62;
APPLY BATCH
&#60;/p&#62;</description>
		</item>
		<item>
			<title>khahn on "CQL 3 TRUNCATE and BATCH times out"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-3-truncate-and-batch-times-out#post-8523</link>
			<pubDate>Sat, 19 Jan 2013 18:35:51 +0000</pubDate>
			<dc:creator>khahn</dc:creator>
			<guid isPermaLink="false">8523@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;and It might be a mistake to specify a consistency level for TRUNCATE.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>khahn on "CQL 3 TRUNCATE and BATCH times out"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-3-truncate-and-batch-times-out#post-8521</link>
			<pubDate>Sat, 19 Jan 2013 17:30:44 +0000</pubDate>
			<dc:creator>khahn</dc:creator>
			<guid isPermaLink="false">8521@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Your problem might be caused by a change in setting the consistency level in the release version of CQL 3 (in Cassandra 1.2).  The BATCH operation no longer includes WITH CONSISTENCY LEVEL: &#60;a href=&#34;http://www.datastax.com/docs/1.2/cql_cli/cql/BATCH#cql-batch&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/docs/1.2/cql_cli/cql/BATCH#cql-batch&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Programatically you set consistency at the driver level.  Here's the cql2 method:&#60;/p&#62;
&#60;p&#62;  CqlResult execute_cql_query(1:required binary query, 2:required&#60;br /&#62;
Compression compression)&#60;/p&#62;
&#60;p&#62;And cql3:&#60;/p&#62;
&#60;p&#62;  CqlResult execute_cql3_query(1:required binary query, 2:required&#60;br /&#62;
Compression compression, 3:required ConsistencyLevel consistency)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Theo on "CQL 3 TRUNCATE and BATCH times out"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-3-truncate-and-batch-times-out#post-8514</link>
			<pubDate>Sat, 19 Jan 2013 12:17:44 +0000</pubDate>
			<dc:creator>Theo</dc:creator>
			<guid isPermaLink="false">8514@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm writing a Ruby driver for the CQL 3 binary protocol (&#60;a href=&#34;http://github.com/iconara/cql-rb&#34; rel=&#34;nofollow&#34;&#62;http://github.com/iconara/cql-rb&#60;/a&#62;) and there are a few things that I can't get to work properly:&#60;/p&#62;
&#60;p&#62;* &#60;code&#62;TRUNCATE&#60;/code&#62; commands block for around a minute and then return error #4099 &#34;Error during truncate: Truncate timed out - received only 0 responses&#34;. 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 &#60;code&#62;TRUNCATE users&#60;/code&#62; with consistency level &#60;code&#62;ONE&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;* &#60;code&#62;BACH&#60;/code&#62; times similarily to &#60;code&#62;TRUNCATE&#60;/code&#62;, but it responds with a little more information: the error is #4352 &#34;Operation timed out - received only 0 responses.&#34; and the extra details (here as a Ruby hash): &#60;code&#62;{:cl=&#38;gt;:one, :received=&#38;gt;0, :blockfor=&#38;gt;1, :write_type=&#38;gt;&#38;quot;BATCH_LOG&#38;quot;}&#60;/code&#62;. The exact CQL I send is&#60;/p&#62;
&#60;p&#62;    BEGIN BATCH&#60;br /&#62;
        INSERT INTO users (user_name, email) VALUES ('phil', 'phil@heck.com')&#60;br /&#62;
        INSERT INTO users (user_name, email) VALUES ('sue', 'sue@inter.net')&#60;br /&#62;
    APPLY BATCH&#60;/p&#62;
&#60;p&#62;with consistency level &#60;code&#62;ONE&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;All other CQL commands I've tried seem to work fine (you can see my whole integration test suite here: &#60;a href=&#34;https://github.com/iconara/cql-rb/blob/master/spec/integration/integration_spec.rb)&#34; rel=&#34;nofollow&#34;&#62;https://github.com/iconara/cql-rb/blob/master/spec/integration/integration_spec.rb)&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;yours&#60;br /&#62;
Theo
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
