[jira] [Commented] (CASSANDRA-4326) IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes

2013-03-12 Thread Kristoffer Carlson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13600123#comment-13600123
 ] 

Kristoffer Carlson commented on CASSANDRA-4326:
---

Also, the UUIDs were generated as per recommendation: 
java.util.UUID.fromString(new com.eaio.uuid.UUID().toString());

 IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes
 ---

 Key: CASSANDRA-4326
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4326
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.1.1
 Environment: Cassandra 1.1.1 running on CentOS 6.0 64bit. 5 nodes, 
 mixed hardware.
Reporter: Kristoffer Carlson

 I get the following exception when performing a query on two indexed columns 
 (both UTF8Type) with TimeUUIDType as the column families key validation class:
 {noformat}
 java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1254)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
 Caused by: java.lang.IndexOutOfBoundsException
 at java.nio.Buffer.checkIndex(Unknown Source)
 at java.nio.HeapByteBuffer.get(Unknown Source)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compareTimestampBytes(TimeUUIDType.java:76)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:65)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:37)
 at org.apache.cassandra.dht.LocalToken.compareTo(LocalToken.java:45)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:89)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:38)
 at java.util.concurrent.ConcurrentSkipListMap.findPredecessor(Unknown 
 Source)
 at java.util.concurrent.ConcurrentSkipListMap.findNode(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.doGet(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.get(Unknown Source)
 at org.apache.cassandra.db.Memtable.resolve(Memtable.java:235)
 at org.apache.cassandra.db.Memtable.put(Memtable.java:156)
 at 
 org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:742)
 at 
 org.apache.cassandra.db.index.keys.KeysIndex.deleteColumn(KeysIndex.java:82)
 at 
 org.apache.cassandra.db.index.SecondaryIndexManager.applyIndexUpdates(SecondaryIndexManager.java:460)
 at org.apache.cassandra.db.Table.apply(Table.java:441)
 at org.apache.cassandra.db.Table.apply(Table.java:366)
 at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:294)
 at 
 org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:453)
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1250)
 ... 3 more
 ERROR [Selector-Thread-0] 2012-06-09 13:43:21,878 TNonblockingServer.java 
 (line 468) Read an invalid frame size of 0. Are you using TFramedTransport on 
 the client side?
 {noformat}
 Also, the keys were generated with the following function (which had worked 
 previously):
 {code:borderStyle=solid}
 public static UUID convertLegacyIdToUuid(long millis, long userId)
 {
 long time = millis * 1 + 0x01b21dd213814000L;
 long timeLow = time  0xL;
 long timeMid = time  0xL;
 long timeHi = time  0xfffL;
 long upperLong = ( timeLow  32 ) | ( timeMid  16 ) | ( 1  12 ) | ( 
 timeHi  48 );
 return new UUID(upperLong, userId);
 }
 {code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-4326) IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes

2013-03-12 Thread Kristoffer Carlson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13600105#comment-13600105
 ] 

Kristoffer Carlson commented on CASSANDRA-4326:
---

I added some debug output and it seems the problem is with the limit of the 
byte buffers:
{code}
 INFO [CompactionExecutor:2] 2013-03-12 15:36:47,507 TimeUUIDType.java (line 
75) o1 limit: 4
 INFO [CompactionExecutor:2] 2013-03-12 15:36:47,507 TimeUUIDType.java (line 
76) o2 limit: 16
{code}

 IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes
 ---

 Key: CASSANDRA-4326
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4326
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.1.1
 Environment: Cassandra 1.1.1 running on CentOS 6.0 64bit. 5 nodes, 
 mixed hardware.
Reporter: Kristoffer Carlson

 I get the following exception when performing a query on two indexed columns 
 (both UTF8Type) with TimeUUIDType as the column families key validation class:
 {noformat}
 java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1254)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
 Caused by: java.lang.IndexOutOfBoundsException
 at java.nio.Buffer.checkIndex(Unknown Source)
 at java.nio.HeapByteBuffer.get(Unknown Source)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compareTimestampBytes(TimeUUIDType.java:76)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:65)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:37)
 at org.apache.cassandra.dht.LocalToken.compareTo(LocalToken.java:45)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:89)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:38)
 at java.util.concurrent.ConcurrentSkipListMap.findPredecessor(Unknown 
 Source)
 at java.util.concurrent.ConcurrentSkipListMap.findNode(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.doGet(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.get(Unknown Source)
 at org.apache.cassandra.db.Memtable.resolve(Memtable.java:235)
 at org.apache.cassandra.db.Memtable.put(Memtable.java:156)
 at 
 org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:742)
 at 
 org.apache.cassandra.db.index.keys.KeysIndex.deleteColumn(KeysIndex.java:82)
 at 
 org.apache.cassandra.db.index.SecondaryIndexManager.applyIndexUpdates(SecondaryIndexManager.java:460)
 at org.apache.cassandra.db.Table.apply(Table.java:441)
 at org.apache.cassandra.db.Table.apply(Table.java:366)
 at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:294)
 at 
 org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:453)
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1250)
 ... 3 more
 ERROR [Selector-Thread-0] 2012-06-09 13:43:21,878 TNonblockingServer.java 
 (line 468) Read an invalid frame size of 0. Are you using TFramedTransport on 
 the client side?
 {noformat}
 Also, the keys were generated with the following function (which had worked 
 previously):
 {code:borderStyle=solid}
 public static UUID convertLegacyIdToUuid(long millis, long userId)
 {
 long time = millis * 1 + 0x01b21dd213814000L;
 long timeLow = time  0xL;
 long timeMid = time  0xL;
 long timeHi = time  0xfffL;
 long upperLong = ( timeLow  32 ) | ( timeMid  16 ) | ( 1  12 ) | ( 
 timeHi  48 );
 return new UUID(upperLong, userId);
 }
 {code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-4326) IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes

2013-03-12 Thread Kristoffer Carlson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13600125#comment-13600125
 ] 

Kristoffer Carlson commented on CASSANDRA-4326:
---

Am currently using a quick-and-dirty workaround. Not sure of the impact, but I 
can start the server:
(in org.apache.cassandra.db.marshal.TimeUUIDType)

{code:java}
  private static int compareTimestampBytes(ByteBuffer o1, ByteBuffer o2)
{
int o1Pos = o1.position();
int o2Pos = o2.position();

if(o1.limit()  16  o2.limit()  16)
{
logger.error(o1 limit: {} ({}), o1.limit(), 
ByteBufferUtil.bytesToHex(o1));
logger.error(o2 limit: {} ({}), o2.limit(), 
ByteBufferUtil.bytesToHex(o2));
return 0;
}

if(o1.limit()  16)
{
logger.error(o1 limit: {} ({}), o1.limit(), 
ByteBufferUtil.bytesToHex(o1));
return -1;
}

if(o2.limit()  16)
{
logger.error(o2 limit: {} ({}), o2.limit(), 
ByteBufferUtil.bytesToHex(o2));
return 1;
}
.
.
.
{code}

 IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes
 ---

 Key: CASSANDRA-4326
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4326
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.1.1
 Environment: Cassandra 1.1.1 running on CentOS 6.0 64bit. 5 nodes, 
 mixed hardware.
Reporter: Kristoffer Carlson

 I get the following exception when performing a query on two indexed columns 
 (both UTF8Type) with TimeUUIDType as the column families key validation class:
 {noformat}
 java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1254)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
 Caused by: java.lang.IndexOutOfBoundsException
 at java.nio.Buffer.checkIndex(Unknown Source)
 at java.nio.HeapByteBuffer.get(Unknown Source)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compareTimestampBytes(TimeUUIDType.java:76)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:65)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:37)
 at org.apache.cassandra.dht.LocalToken.compareTo(LocalToken.java:45)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:89)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:38)
 at java.util.concurrent.ConcurrentSkipListMap.findPredecessor(Unknown 
 Source)
 at java.util.concurrent.ConcurrentSkipListMap.findNode(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.doGet(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.get(Unknown Source)
 at org.apache.cassandra.db.Memtable.resolve(Memtable.java:235)
 at org.apache.cassandra.db.Memtable.put(Memtable.java:156)
 at 
 org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:742)
 at 
 org.apache.cassandra.db.index.keys.KeysIndex.deleteColumn(KeysIndex.java:82)
 at 
 org.apache.cassandra.db.index.SecondaryIndexManager.applyIndexUpdates(SecondaryIndexManager.java:460)
 at org.apache.cassandra.db.Table.apply(Table.java:441)
 at org.apache.cassandra.db.Table.apply(Table.java:366)
 at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:294)
 at 
 org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:453)
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1250)
 ... 3 more
 ERROR [Selector-Thread-0] 2012-06-09 13:43:21,878 TNonblockingServer.java 
 (line 468) Read an invalid frame size of 0. Are you using TFramedTransport on 
 the client side?
 {noformat}
 Also, the keys were generated with the following function (which had worked 
 previously):
 {code:borderStyle=solid}
 public static UUID convertLegacyIdToUuid(long millis, long userId)
 {
 long time = millis * 1 + 0x01b21dd213814000L;
 long timeLow = time  0xL;
 long timeMid = time  0xL;
 long timeHi = time  0xfffL;
 long upperLong = ( timeLow  32 ) | ( timeMid  16 ) | ( 1  12 ) | ( 
 timeHi  48 );
 return new UUID(upperLong, userId);
 }
 {code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: 

[jira] [Commented] (CASSANDRA-4326) IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes

2013-03-12 Thread Kristoffer Carlson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13600104#comment-13600104
 ] 

Kristoffer Carlson commented on CASSANDRA-4326:
---

The stacktrace:

{code}
ERROR [CompactionExecutor:2] 2013-03-12 15:36:47,509 CassandraDaemon.java (line 
169) Exception in thread Thread[CompactionExecutor:2,1,main]
java.lang.IndexOutOfBoundsException
at java.nio.Buffer.checkIndex(Buffer.java:532)
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:139)
at 
org.apache.cassandra.db.marshal.TimeUUIDType.compareTimestampBytes(TimeUUIDType.java:78)
at 
org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:64)
at 
org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:34)
at org.apache.cassandra.dht.LocalToken.compareTo(LocalToken.java:44)
at org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:85)
at org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:36)
at 
java.util.concurrent.ConcurrentSkipListMap.findPredecessor(ConcurrentSkipListMap.java:727)
at 
java.util.concurrent.ConcurrentSkipListMap.findNode(ConcurrentSkipListMap.java:789)
at 
java.util.concurrent.ConcurrentSkipListMap.doGet(ConcurrentSkipListMap.java:828)
at 
java.util.concurrent.ConcurrentSkipListMap.get(ConcurrentSkipListMap.java:1626)
at org.apache.cassandra.db.Memtable.resolve(Memtable.java:247)
at org.apache.cassandra.db.Memtable.put(Memtable.java:174)
at 
org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:853)
at 
org.apache.cassandra.db.index.AbstractSimplePerColumnSecondaryIndex.insert(AbstractSimplePerColumnSecondaryIndex.java:120)
at 
org.apache.cassandra.db.index.SecondaryIndexManager.indexRow(SecondaryIndexManager.java:439)
at org.apache.cassandra.db.Table.indexRow(Table.java:433)
at 
org.apache.cassandra.db.index.SecondaryIndexBuilder.build(SecondaryIndexBuilder.java:62)
at 
org.apache.cassandra.db.compaction.CompactionManager$9.run(CompactionManager.java:768)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
 INFO [main] 2013-03-12 15:36:47,518 CommitLogReplayer.java (line 279) Finished 
reading /mnt/md0/cassandra/commitlog/CommitLog-2-1363041193603.log
 INFO [main] 2013-03-12 15:36:47,519 CommitLogReplayer.java (line 119) 
Replaying /mnt/md0/cassandra/commitlog/CommitLog-2-1363041193604.log

{code}

 IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes
 ---

 Key: CASSANDRA-4326
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4326
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.1.1
 Environment: Cassandra 1.1.1 running on CentOS 6.0 64bit. 5 nodes, 
 mixed hardware.
Reporter: Kristoffer Carlson

 I get the following exception when performing a query on two indexed columns 
 (both UTF8Type) with TimeUUIDType as the column families key validation class:
 {noformat}
 java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1254)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
 Caused by: java.lang.IndexOutOfBoundsException
 at java.nio.Buffer.checkIndex(Unknown Source)
 at java.nio.HeapByteBuffer.get(Unknown Source)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compareTimestampBytes(TimeUUIDType.java:76)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:65)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:37)
 at org.apache.cassandra.dht.LocalToken.compareTo(LocalToken.java:45)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:89)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:38)
 at java.util.concurrent.ConcurrentSkipListMap.findPredecessor(Unknown 
 Source)
 at java.util.concurrent.ConcurrentSkipListMap.findNode(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.doGet(Unknown Source)
 at 

[jira] [Commented] (CASSANDRA-4326) IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes

2013-03-12 Thread Kristoffer Carlson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13600354#comment-13600354
 ] 

Kristoffer Carlson commented on CASSANDRA-4326:
---

I see. But these are all on secondary indexes. So wouldn't cassandra validate 
the data?

I have not changed my schema either.

This is happening when attempting to add another node along with one existing 
with a replication factor of 2. So it's odd that the first node never 
complained.

 IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes
 ---

 Key: CASSANDRA-4326
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4326
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.1.1, 1.2.2
 Environment: Cassandra 1.1.1 running on CentOS 6.0 64bit. 5 nodes, 
 mixed hardware.
 Cassandra 1.2.2 running on CentOS 6.0 64bit, 2 nodes, amazon cloud m1.large
Reporter: Kristoffer Carlson

 NOTE: The following description is from 1.1.1, see comments from 12/Mar/13 
 and on for recent failure (v1.2.2).
 I get the following exception when performing a query on two indexed columns 
 (both UTF8Type) with TimeUUIDType as the column families key validation class:
 {noformat}
 java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1254)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
 Caused by: java.lang.IndexOutOfBoundsException
 at java.nio.Buffer.checkIndex(Unknown Source)
 at java.nio.HeapByteBuffer.get(Unknown Source)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compareTimestampBytes(TimeUUIDType.java:76)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:65)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:37)
 at org.apache.cassandra.dht.LocalToken.compareTo(LocalToken.java:45)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:89)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:38)
 at java.util.concurrent.ConcurrentSkipListMap.findPredecessor(Unknown 
 Source)
 at java.util.concurrent.ConcurrentSkipListMap.findNode(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.doGet(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.get(Unknown Source)
 at org.apache.cassandra.db.Memtable.resolve(Memtable.java:235)
 at org.apache.cassandra.db.Memtable.put(Memtable.java:156)
 at 
 org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:742)
 at 
 org.apache.cassandra.db.index.keys.KeysIndex.deleteColumn(KeysIndex.java:82)
 at 
 org.apache.cassandra.db.index.SecondaryIndexManager.applyIndexUpdates(SecondaryIndexManager.java:460)
 at org.apache.cassandra.db.Table.apply(Table.java:441)
 at org.apache.cassandra.db.Table.apply(Table.java:366)
 at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:294)
 at 
 org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:453)
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1250)
 ... 3 more
 ERROR [Selector-Thread-0] 2012-06-09 13:43:21,878 TNonblockingServer.java 
 (line 468) Read an invalid frame size of 0. Are you using TFramedTransport on 
 the client side?
 {noformat}
 Also, the keys were generated with the following function (which had worked 
 previously):
 {code:borderStyle=solid}
 public static UUID convertLegacyIdToUuid(long millis, long userId)
 {
 long time = millis * 1 + 0x01b21dd213814000L;
 long timeLow = time  0xL;
 long timeMid = time  0xL;
 long timeHi = time  0xfffL;
 long upperLong = ( timeLow  32 ) | ( timeMid  16 ) | ( 1  12 ) | ( 
 timeHi  48 );
 return new UUID(upperLong, userId);
 }
 {code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-4326) IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes

2012-06-12 Thread Kristoffer Carlson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13293418#comment-13293418
 ] 

Kristoffer Carlson commented on CASSANDRA-4326:
---

After completely deleting all cassandra files and reinstalling, this goes away.

 IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes
 ---

 Key: CASSANDRA-4326
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4326
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.1.1
 Environment: Cassandra 1.1.1 running on CentOS 6.0 64bit. 5 nodes, 
 mixed hardware.
Reporter: Kristoffer Carlson

 I get the following exception when performing a query on two indexed columns 
 (both UTF8Type) with TimeUUIDType as the column families key validation class:
 {noformat}
 java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1254)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
 Caused by: java.lang.IndexOutOfBoundsException
 at java.nio.Buffer.checkIndex(Unknown Source)
 at java.nio.HeapByteBuffer.get(Unknown Source)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compareTimestampBytes(TimeUUIDType.java:76)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:65)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:37)
 at org.apache.cassandra.dht.LocalToken.compareTo(LocalToken.java:45)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:89)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:38)
 at java.util.concurrent.ConcurrentSkipListMap.findPredecessor(Unknown 
 Source)
 at java.util.concurrent.ConcurrentSkipListMap.findNode(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.doGet(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.get(Unknown Source)
 at org.apache.cassandra.db.Memtable.resolve(Memtable.java:235)
 at org.apache.cassandra.db.Memtable.put(Memtable.java:156)
 at 
 org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:742)
 at 
 org.apache.cassandra.db.index.keys.KeysIndex.deleteColumn(KeysIndex.java:82)
 at 
 org.apache.cassandra.db.index.SecondaryIndexManager.applyIndexUpdates(SecondaryIndexManager.java:460)
 at org.apache.cassandra.db.Table.apply(Table.java:441)
 at org.apache.cassandra.db.Table.apply(Table.java:366)
 at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:294)
 at 
 org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:453)
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1250)
 ... 3 more
 ERROR [Selector-Thread-0] 2012-06-09 13:43:21,878 TNonblockingServer.java 
 (line 468) Read an invalid frame size of 0. Are you using TFramedTransport on 
 the client side?
 {noformat}
 Also, the keys were generated with the following function (which had worked 
 previously):
 {code:borderStyle=solid}
 public static UUID convertLegacyIdToUuid(long millis, long userId)
 {
 long time = millis * 1 + 0x01b21dd213814000L;
 long timeLow = time  0xL;
 long timeMid = time  0xL;
 long timeHi = time  0xfffL;
 long upperLong = ( timeLow  32 ) | ( timeMid  16 ) | ( 1  12 ) | ( 
 timeHi  48 );
 return new UUID(upperLong, userId);
 }
 {code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-4326) IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes

2012-06-10 Thread Kristoffer Carlson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13292517#comment-13292517
 ] 

Kristoffer Carlson commented on CASSANDRA-4326:
---

It works fine on a single node. Trying to update the cluster environment 
doesn't work. If I use the cli command:
{noformat}
update column family CF with key_validation_class = UUIDType;
{noformat}
the cli just hangs. There's no output from any node besides:
{noformat}
ERROR [Selector-Thread-1] 2012-06-10 15:24:06,673 TNonblockingServer.java (line 
468) Read an invalid frame size of 0. Are you using TFramedTransport on the 
client side?
{noformat}

Also forgot to mention that I can get data using the timeuuid keys just fine, 
it's just the secondary indexes that don't work. However, the secondary indexes 
do work through the cli.

 IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes
 ---

 Key: CASSANDRA-4326
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4326
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.1.1
 Environment: Cassandra 1.1.1 running on CentOS 6.0 64bit. 5 nodes, 
 mixed hardware.
Reporter: Kristoffer Carlson

 I get the following exception when performing a query on two indexed columns 
 (both UTF8Type) with TimeUUIDType as the column families key validation class:
 {noformat}
 java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1254)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
 Caused by: java.lang.IndexOutOfBoundsException
 at java.nio.Buffer.checkIndex(Unknown Source)
 at java.nio.HeapByteBuffer.get(Unknown Source)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compareTimestampBytes(TimeUUIDType.java:76)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:65)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:37)
 at org.apache.cassandra.dht.LocalToken.compareTo(LocalToken.java:45)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:89)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:38)
 at java.util.concurrent.ConcurrentSkipListMap.findPredecessor(Unknown 
 Source)
 at java.util.concurrent.ConcurrentSkipListMap.findNode(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.doGet(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.get(Unknown Source)
 at org.apache.cassandra.db.Memtable.resolve(Memtable.java:235)
 at org.apache.cassandra.db.Memtable.put(Memtable.java:156)
 at 
 org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:742)
 at 
 org.apache.cassandra.db.index.keys.KeysIndex.deleteColumn(KeysIndex.java:82)
 at 
 org.apache.cassandra.db.index.SecondaryIndexManager.applyIndexUpdates(SecondaryIndexManager.java:460)
 at org.apache.cassandra.db.Table.apply(Table.java:441)
 at org.apache.cassandra.db.Table.apply(Table.java:366)
 at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:294)
 at 
 org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:453)
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1250)
 ... 3 more
 ERROR [Selector-Thread-0] 2012-06-09 13:43:21,878 TNonblockingServer.java 
 (line 468) Read an invalid frame size of 0. Are you using TFramedTransport on 
 the client side?
 {noformat}
 Also, the keys were generated with the following function (which had worked 
 previously):
 {code:borderStyle=solid}
 public static UUID convertLegacyIdToUuid(long millis, long userId)
 {
 long time = millis * 1 + 0x01b21dd213814000L;
 long timeLow = time  0xL;
 long timeMid = time  0xL;
 long timeHi = time  0xfffL;
 long upperLong = ( timeLow  32 ) | ( timeMid  16 ) | ( 1  12 ) | ( 
 timeHi  48 );
 return new UUID(upperLong, userId);
 }
 {code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CASSANDRA-4326) IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes

2012-06-09 Thread Jonathan Ellis (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13292361#comment-13292361
 ] 

Jonathan Ellis commented on CASSANDRA-4326:
---

Do you get the same error using UUIDType instead of TimeUUIDType?

Can you reproduce w/ a simple single node test case?

 IndexOutOfBoundsException on TimeUUIDType.compareTimestampBytes
 ---

 Key: CASSANDRA-4326
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4326
 Project: Cassandra
  Issue Type: Bug
  Components: Core
Affects Versions: 1.1.1
 Environment: Cassandra 1.1.1 running on CentOS 6.0 64bit. 5 nodes, 
 mixed hardware.
Reporter: Kristoffer Carlson

 I get the following exception when performing a query on two indexed columns 
 (both UTF8Type) with TimeUUIDType as the column families key validation class:
 {noformat}
 java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1254)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
 Caused by: java.lang.IndexOutOfBoundsException
 at java.nio.Buffer.checkIndex(Unknown Source)
 at java.nio.HeapByteBuffer.get(Unknown Source)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compareTimestampBytes(TimeUUIDType.java:76)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:65)
 at 
 org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:37)
 at org.apache.cassandra.dht.LocalToken.compareTo(LocalToken.java:45)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:89)
 at 
 org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:38)
 at java.util.concurrent.ConcurrentSkipListMap.findPredecessor(Unknown 
 Source)
 at java.util.concurrent.ConcurrentSkipListMap.findNode(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.doGet(Unknown Source)
 at java.util.concurrent.ConcurrentSkipListMap.get(Unknown Source)
 at org.apache.cassandra.db.Memtable.resolve(Memtable.java:235)
 at org.apache.cassandra.db.Memtable.put(Memtable.java:156)
 at 
 org.apache.cassandra.db.ColumnFamilyStore.apply(ColumnFamilyStore.java:742)
 at 
 org.apache.cassandra.db.index.keys.KeysIndex.deleteColumn(KeysIndex.java:82)
 at 
 org.apache.cassandra.db.index.SecondaryIndexManager.applyIndexUpdates(SecondaryIndexManager.java:460)
 at org.apache.cassandra.db.Table.apply(Table.java:441)
 at org.apache.cassandra.db.Table.apply(Table.java:366)
 at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:294)
 at 
 org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:453)
 at 
 org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1250)
 ... 3 more
 ERROR [Selector-Thread-0] 2012-06-09 13:43:21,878 TNonblockingServer.java 
 (line 468) Read an invalid frame size of 0. Are you using TFramedTransport on 
 the client side?
 {noformat}
 Also, the keys were generated with the following function (which had worked 
 previously):
 {code:borderStyle=solid}
 public static UUID convertLegacyIdToUuid(long millis, long userId)
 {
 long time = millis * 1 + 0x01b21dd213814000L;
 long timeLow = time  0xL;
 long timeMid = time  0xL;
 long timeHi = time  0xfffL;
 long upperLong = ( timeLow  32 ) | ( timeMid  16 ) | ( 1  12 ) | ( 
 timeHi  48 );
 return new UUID(upperLong, userId);
 }
 {code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira