You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Lucas Nodine <lu...@gmail.com> on 2010/09/25 04:12:55 UTC

Insertion question

I am working with 0.7.0-beta1 (distribution from bin on website)

First, am I correct in that since beta1 keys are now bytes instead of
strings?

Second, should there be additional data before the key value that I specify
(read below for explaination)?

I am attempting to perform a batch mutation when executing the mutation I
receive the following:

DEBUG [pool-1-thread-3] 2010-09-24 20:59:24,329 CassandraServer.java (line
397) batch_mutate
DEBUG [pool-1-thread-3] 2010-09-24 20:59:24,332 StorageProxy.java (line 271)
insert writing local RowMutation(keyspace='LawOffice',
key='537472696e673a6663356661353964373833643462633262376466326661653830653539356664',
modifications=[MetaAssets])
DEBUG [pool-1-thread-3] 2010-09-24 20:59:24,341 CassandraServer.java (line
679) logout complete

*NOTE* 537472696e673a <-- that is not part of my key

Then when I attempt a get with the exact key that I passed to cassandra to
save the logs show this:

DEBUG [pool-1-thread-4] 2010-09-24 21:00:28,438 CassandraServer.java (line
267) get_slice
DEBUG [pool-1-thread-4] 2010-09-24 21:00:28,439 StorageProxy.java (line 416)
strongread reading data for SliceFromReadCommand(table='LawOffice',
key='6663356661353964373833643462633262376466326661653830653539356664',
column_parent='QueryPath(columnFamilyName='MetaAssets',
superColumnName='null', columnName='null')', start='', finish='',
bitmasks=[], reversed=false, count=100) from 402@localhost/127.0.0.1
DEBUG [ROW-READ-STAGE:5] 2010-09-24 21:00:28,442 ReadVerbHandler.java (line
94) Read key [B@43da1b; sending response to
FB7446C5-E714-93BC-9543-3FF858660B58@localhost/127.0.0.1
DEBUG [RESPONSE-STAGE:2] 2010-09-24 21:00:28,442 ResponseVerbHandler.java
(line 43) Processing response on a callback from
FB7446C5-E714-93BC-9543-3FF858660B58@localhost/127.0.0.1

*NOTE* get key and insert key are the same except for the values noted
above.  If anyone has an idea what I might be doing wrong, please let me
know.

My keys are based on GUIDs which are being saved as a string then,
eventually, inserted into cassandra as bytes.


-- 
Lucas J. Nodine
Assistant Labette County Attorney
201 S. Central, Suite B
Parsons, KS 67357
(620) 421-6370

Re: Insertion question

Posted by Jonathan Ellis <jb...@gmail.com>.
On Fri, Sep 24, 2010 at 7:12 PM, Lucas Nodine <lu...@gmail.com> wrote:
> I am working with 0.7.0-beta1 (distribution from bin on website)
>
> First, am I correct in that since beta1 keys are now bytes instead of
> strings?

Yes.

> Second, should there be additional data before the key value that I specify
> (read below for explaination)?

No.  My guess would be a problem with your client -- this is well-tested.

-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com