<?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; Topic: stress tool can&#039;t read</title>
		<link>http://www.datastax.com/support-forums/topic/stress-tool-cant-read</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 20:57:52 +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/topic/stress-tool-cant-read" rel="self" type="application/rss+xml" />

		<item>
			<title>albertnices on "stress tool can&#039;t read"</title>
			<link>http://www.datastax.com/support-forums/topic/stress-tool-cant-read#post-1408</link>
			<pubDate>Wed, 21 Mar 2012 10:02:25 +0000</pubDate>
			<dc:creator>albertnices</dc:creator>
			<guid isPermaLink="false">1408@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;If you have lots of problem from stress just take meditation 5-10 min after that you feel very well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "stress tool can&#039;t read"</title>
			<link>http://www.datastax.com/support-forums/topic/stress-tool-cant-read#post-1323</link>
			<pubDate>Wed, 07 Mar 2012 13:45:15 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1323@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Did you try -o read -n 100000?  The issue isn't that you were trying to read with a different n, it's that you were trying to read with an n which has a different order of magnitude.  When trying to read -n 1, see that it was trying to read key 0?  That key doesn't exist from a -n 100000 insert, since it will have only inserted keys 000000-099999.&#60;/p&#62;
&#60;p&#62;To explain it more generally and without so many confusing sets of zeroes...&#60;br /&#62;
If you go into Data Explorer in OpsCenter, or simply do a list CF in cassandra-cli, you'll see that each key generated by a -o insert -n x will have the same number of digits as x does.  This is the problem you're running into when trying to -o read -n y.  If y doesn't have the same number of digits as x, the read will fail as it's trying to access keys that don't exist.&#60;/p&#62;
&#60;p&#62;In general, you'll want to only use the stress -o read with the same -n you used during the insert.  The farthest you can deviate from this would be to -o insert -n 9999 and then -o read -n 1000 (And similar 9...9-&#38;gt;100...0 patterns), since they have the same number of digits they will both be accessing the same keys.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "stress tool can&#039;t read"</title>
			<link>http://www.datastax.com/support-forums/topic/stress-tool-cant-read#post-1319</link>
			<pubDate>Wed, 07 Mar 2012 09:54:57 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1319@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Well I did not know that but even with a&#60;br /&#62;
stress -d 127.0.0.1 -o read -n 1 it does not work:&#60;/p&#62;
&#60;p&#62;total,interval_op_rate,interval_key_rate,avg_latency,elapsed_time&#60;br /&#62;
Operation [0] retried 10 times - error reading key 0&#60;/p&#62;
&#60;p&#62;0,0,0,NaN,0&#60;br /&#62;
END&#60;/p&#62;
&#60;p&#62;I'm sure data are in the DB.&#60;/p&#62;
&#60;p&#62;thx
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "stress tool can&#039;t read"</title>
			<link>http://www.datastax.com/support-forums/topic/stress-tool-cant-read#post-1304</link>
			<pubDate>Tue, 06 Mar 2012 13:43:42 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1304@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;stress -d 127.0.0.1 -n 100000&#60;br /&#62;
will write rows with key values 000000-099999, when you then do&#60;br /&#62;
stress -d 127.0.0.1 -o read&#60;br /&#62;
without a -n, it is defaulting to -n 1000000, which will try to read keys 0000000-0999999 (notice the extra digit).  Switch your stress read to:&#60;br /&#62;
stress -d 127.0.0.1 -o read -n 100000&#60;br /&#62;
and see if that works for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "stress tool can&#039;t read"</title>
			<link>http://www.datastax.com/support-forums/topic/stress-tool-cant-read#post-1302</link>
			<pubDate>Tue, 06 Mar 2012 08:33:34 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1302@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hello I have a problem with the stress tool.&#60;br /&#62;
I've played this:&#60;br /&#62;
stress -d 127.0.0.1 -n 100000&#60;br /&#62;
no problem&#60;br /&#62;
then I do stress -d 127.0.0.1 -o read&#60;br /&#62;
and here I have many error messages like this one:&#60;br /&#62;
Operation [15] retried 10 times - error reading key 0526289&#60;br /&#62;
and at the end:&#60;br /&#62;
0,0,0,NaN,2&#60;/p&#62;
&#60;p&#62;I'm running cassandra 1.0.8 under debian suqeeze and java 1.6.&#60;/p&#62;
&#60;p&#62;Does it should work?&#60;/p&#62;
&#60;p&#62;thx
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
