Error in TBaseHelper compareTo(byte [] a , byte [] b)

2010-05-03 Thread Erik Holstad
Hey! We are currently using Cassandra 0.5.1 and I'm getting a StackOverflowError when comparing two ColumnOrSuperColumn objects. It turns out the the comparTo function for byte [] has an infinite loop in libthrift-r820831.jar. We are planning to upgrade to 0.6.1 but not ready to do it today', so

Re: Best way to store millisecond-accurate data

2010-04-23 Thread Erik Holstad
On Fri, Apr 23, 2010 at 5:54 PM, Miguel Verde miguelitov...@gmail.comwrote: TimeUUID's time component is measured in 100-nanosecond intervals. The library you use might calculate it with poorer accuracy or precision, but from a storage/comparison standpoint in Cassandra millisecond data is

PropertyFileEndPointSnitch

2010-04-19 Thread Erik Holstad
When building the PropertyFileEndPointSnitch into the jar cassandra-propsnitch.jar the files in the jar end up on src/java/org/apache/cassandra/locator/PropertyFileEndPointSnitch.class instead of org/apache/cassandra/locator/PropertyFileEndPointSnitch.class. Am I doing something wrong , is this

Re: Auto Increament

2010-03-24 Thread Erik Holstad
On Wed, Mar 24, 2010 at 11:00 AM, Jesus Ibanez jesusiba...@gmail.comwrote: You can generate UUIDs based on time with http://jug.safehaus.org/ if you use Java. And its easy to use, just have to insert one line: UUID uuid = UUIDGenerator.getInstance().generateTimeBasedUUID(); Maybe a solution

Re: Timestamp for versioning?

2010-03-23 Thread Erik Holstad
If I'm not totally mistaken the timestamp is used for conflict resolution on the server. Have a look at: http://wiki.apache.org/cassandra/DataModel for more info 2010/3/23 Waaij, B.D. (Bram) van der bram.vanderwa...@tno.nl Can you explain then to me what the purpose is of the timestamp?