[jira] [Commented] (CASSANDRA-6629) Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL 1

2014-01-29 Thread Roman Skvazh (JIRA)

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

Roman Skvazh commented on CASSANDRA-6629:
-

Guys, what about scrub and read repair problem?

 Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL  1
 

 Key: CASSANDRA-6629
 URL: https://issues.apache.org/jira/browse/CASSANDRA-6629
 Project: Cassandra
  Issue Type: Bug
  Components: API
 Environment: 15 nodes, 2.0.4, RF=3
Reporter: Roman Skvazh
Assignee: Mikhail Stepura
 Fix For: 1.2.14, 2.0.5

 Attachments: CASSANDRA-1.2-6629-v2.patch, CASSANDRA-2.0-6629-v2.patch


 I've got this error in system.log on all coordinators
 {noformat}
 ERROR [Thrift:37555] 2014-01-28 19:53:51,547 CustomTThreadPoolServer.java 
 (line 212) Error occurred during processing of message.
 java.lang.ArrayIndexOutOfBoundsException: -1
 at java.util.ArrayList.elementData(ArrayList.java:400)
 at java.util.ArrayList.remove(ArrayList.java:477)
 at 
 org.apache.cassandra.db.ArrayBackedSortedColumns$ReverseSortedCollection$1.remove(ArrayBackedSortedColumns.java:373)
 at 
 org.apache.cassandra.db.filter.SliceQueryFilter.trim(SliceQueryFilter.java:249)
 at 
 org.apache.cassandra.db.SliceFromReadCommand.maybeTrim(SliceFromReadCommand.java:101)
 at 
 org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:1370)
 at 
 org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:1189)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:188)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:58)
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:188)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:212)
 at 
 org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1958)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4486)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4470)
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
 at 
 org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 {noformat}
 It's occurred on coordinator (not always primary or secondary of this uid-PK) 
 when I execute query (PHP or Python client got TSocket read 0 bytes 
 exception):
 {code:sql}SELECT * FROM home_timeline WHERE uid = 0x52dcbc794989a6ea2c8b4569 
 ORDER BY tuuid DESC LIMIT 32{code}
 If limit  32, then its ok. When ORDER ... ASC its ok. When ConsistencyLevel 
 1 its ok.
 On one node data is inconsistent with two others, and read repair won't work 
 (32-nd element is odd).
 Our RF = 3
 Cassandra version 2.0.4



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-6629) Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL 1

2014-01-29 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko commented on CASSANDRA-6629:
--

bq. Guys, what about scrub and read repair problem?

Do you still have a problem?

 Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL  1
 

 Key: CASSANDRA-6629
 URL: https://issues.apache.org/jira/browse/CASSANDRA-6629
 Project: Cassandra
  Issue Type: Bug
  Components: API
 Environment: 15 nodes, 2.0.4, RF=3
Reporter: Roman Skvazh
Assignee: Mikhail Stepura
 Fix For: 1.2.14, 2.0.5

 Attachments: CASSANDRA-1.2-6629-v2.patch, CASSANDRA-2.0-6629-v2.patch


 I've got this error in system.log on all coordinators
 {noformat}
 ERROR [Thrift:37555] 2014-01-28 19:53:51,547 CustomTThreadPoolServer.java 
 (line 212) Error occurred during processing of message.
 java.lang.ArrayIndexOutOfBoundsException: -1
 at java.util.ArrayList.elementData(ArrayList.java:400)
 at java.util.ArrayList.remove(ArrayList.java:477)
 at 
 org.apache.cassandra.db.ArrayBackedSortedColumns$ReverseSortedCollection$1.remove(ArrayBackedSortedColumns.java:373)
 at 
 org.apache.cassandra.db.filter.SliceQueryFilter.trim(SliceQueryFilter.java:249)
 at 
 org.apache.cassandra.db.SliceFromReadCommand.maybeTrim(SliceFromReadCommand.java:101)
 at 
 org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:1370)
 at 
 org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:1189)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:188)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:58)
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:188)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:212)
 at 
 org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1958)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4486)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4470)
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
 at 
 org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 {noformat}
 It's occurred on coordinator (not always primary or secondary of this uid-PK) 
 when I execute query (PHP or Python client got TSocket read 0 bytes 
 exception):
 {code:sql}SELECT * FROM home_timeline WHERE uid = 0x52dcbc794989a6ea2c8b4569 
 ORDER BY tuuid DESC LIMIT 32{code}
 If limit  32, then its ok. When ORDER ... ASC its ok. When ConsistencyLevel 
 1 its ok.
 On one node data is inconsistent with two others, and read repair won't work 
 (32-nd element is odd).
 Our RF = 3
 Cassandra version 2.0.4



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-6629) Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL 1

2014-01-28 Thread Roman Skvazh (JIRA)

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

Roman Skvazh commented on CASSANDRA-6629:
-

Does this linked with CASSANDRA-6333?

 Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL  1
 

 Key: CASSANDRA-6629
 URL: https://issues.apache.org/jira/browse/CASSANDRA-6629
 Project: Cassandra
  Issue Type: Bug
 Environment: 15 nodes, 2.0.4, RF=3
Reporter: Roman Skvazh

 I've got this error in system.log on all coordinators
 {noformat}
 ERROR [Thrift:37555] 2014-01-28 19:53:51,547 CustomTThreadPoolServer.java 
 (line 212) Error occurred during processing of message.
 java.lang.ArrayIndexOutOfBoundsException: -1
 at java.util.ArrayList.elementData(ArrayList.java:400)
 at java.util.ArrayList.remove(ArrayList.java:477)
 at 
 org.apache.cassandra.db.ArrayBackedSortedColumns$ReverseSortedCollection$1.remove(ArrayBackedSortedColumns.java:373)
 at 
 org.apache.cassandra.db.filter.SliceQueryFilter.trim(SliceQueryFilter.java:249)
 at 
 org.apache.cassandra.db.SliceFromReadCommand.maybeTrim(SliceFromReadCommand.java:101)
 at 
 org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:1370)
 at 
 org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:1189)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:188)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:58)
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:188)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:212)
 at 
 org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1958)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4486)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4470)
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
 at 
 org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 {noformat}
 It's occurred on coordinator (not always primary or secondary of this uid-PK) 
 when I execute query (PHP or Python client got TSocket read 0 bytes 
 exception):
 {code:sql}SELECT * FROM home_timeline WHERE uid = 0x52dcbc794989a6ea2c8b4569 
 ORDER BY tuuid DESC LIMIT 32{code}
 If limit  32, then its ok. When ORDER ... ASC its ok. When ConsistencyLevel 
 1 its ok.
 On one node data is inconsistent with two others, and read repair won't work 
 (32-nd element is odd).
 Our RF = 3
 Cassandra version 2.0.4



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-6629) Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL 1

2014-01-28 Thread Mikhail Stepura (JIRA)

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

Mikhail Stepura commented on CASSANDRA-6629:


It looks like {{remove}} at 
{{org.apache.cassandra.db.ArrayBackedSortedColumns.ReverseSortedCollection.iterator}}
 should use _idx_ (current item)  rather than _idx--_ (next item)

{code:title=Current implementation which throws ArrayIndexOutOfBoundsException}
return new IteratorColumn()
{
int idx = size() - 1;

public boolean hasNext()
{
return idx = 0;
}

public Column next()
{
return columns.get(idx--);
}

public void remove()
{
columns.remove(idx--);
}
{code}

 Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL  1
 

 Key: CASSANDRA-6629
 URL: https://issues.apache.org/jira/browse/CASSANDRA-6629
 Project: Cassandra
  Issue Type: Bug
 Environment: 15 nodes, 2.0.4, RF=3
Reporter: Roman Skvazh

 I've got this error in system.log on all coordinators
 {noformat}
 ERROR [Thrift:37555] 2014-01-28 19:53:51,547 CustomTThreadPoolServer.java 
 (line 212) Error occurred during processing of message.
 java.lang.ArrayIndexOutOfBoundsException: -1
 at java.util.ArrayList.elementData(ArrayList.java:400)
 at java.util.ArrayList.remove(ArrayList.java:477)
 at 
 org.apache.cassandra.db.ArrayBackedSortedColumns$ReverseSortedCollection$1.remove(ArrayBackedSortedColumns.java:373)
 at 
 org.apache.cassandra.db.filter.SliceQueryFilter.trim(SliceQueryFilter.java:249)
 at 
 org.apache.cassandra.db.SliceFromReadCommand.maybeTrim(SliceFromReadCommand.java:101)
 at 
 org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:1370)
 at 
 org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:1189)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:188)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:58)
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:188)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:212)
 at 
 org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1958)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4486)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4470)
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
 at 
 org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 {noformat}
 It's occurred on coordinator (not always primary or secondary of this uid-PK) 
 when I execute query (PHP or Python client got TSocket read 0 bytes 
 exception):
 {code:sql}SELECT * FROM home_timeline WHERE uid = 0x52dcbc794989a6ea2c8b4569 
 ORDER BY tuuid DESC LIMIT 32{code}
 If limit  32, then its ok. When ORDER ... ASC its ok. When ConsistencyLevel 
 1 its ok.
 On one node data is inconsistent with two others, and read repair won't work 
 (32-nd element is odd).
 Our RF = 3
 Cassandra version 2.0.4



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-6629) Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL 1

2014-01-28 Thread Mikhail Stepura (JIRA)

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

Mikhail Stepura commented on CASSANDRA-6629:


Restoring my original comment 

It looks like {{remove}} at 
{{org.apache.cassandra.db.ArrayBackedSortedColumns.ReverseSortedCollection.iterator}}
 should use _idx_ (current item) instead of _idx--_ (next item)

{code:title=Current implementation which throws ArrayIndexOutOfBoundsException}
private class ReverseSortedCollection extends AbstractCollectionColumn
{
..
return new IteratorColumn()
{
int idx = size() - 1;

public boolean hasNext()
{
return idx = 0;
}

public Column next()
{
return columns.get(idx--);
}

public void remove()
{
columns.remove(idx--);
}
{code}

 Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL  1
 

 Key: CASSANDRA-6629
 URL: https://issues.apache.org/jira/browse/CASSANDRA-6629
 Project: Cassandra
  Issue Type: Bug
  Components: API
 Environment: 15 nodes, 2.0.4, RF=3
Reporter: Roman Skvazh
Assignee: Mikhail Stepura
 Fix For: 2.0.5


 I've got this error in system.log on all coordinators
 {noformat}
 ERROR [Thrift:37555] 2014-01-28 19:53:51,547 CustomTThreadPoolServer.java 
 (line 212) Error occurred during processing of message.
 java.lang.ArrayIndexOutOfBoundsException: -1
 at java.util.ArrayList.elementData(ArrayList.java:400)
 at java.util.ArrayList.remove(ArrayList.java:477)
 at 
 org.apache.cassandra.db.ArrayBackedSortedColumns$ReverseSortedCollection$1.remove(ArrayBackedSortedColumns.java:373)
 at 
 org.apache.cassandra.db.filter.SliceQueryFilter.trim(SliceQueryFilter.java:249)
 at 
 org.apache.cassandra.db.SliceFromReadCommand.maybeTrim(SliceFromReadCommand.java:101)
 at 
 org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:1370)
 at 
 org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:1189)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:188)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:58)
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:188)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:212)
 at 
 org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1958)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4486)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4470)
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
 at 
 org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 {noformat}
 It's occurred on coordinator (not always primary or secondary of this uid-PK) 
 when I execute query (PHP or Python client got TSocket read 0 bytes 
 exception):
 {code:sql}SELECT * FROM home_timeline WHERE uid = 0x52dcbc794989a6ea2c8b4569 
 ORDER BY tuuid DESC LIMIT 32{code}
 If limit  32, then its ok. When ORDER ... ASC its ok. When ConsistencyLevel 
 1 its ok.
 On one node data is inconsistent with two others, and read repair won't work 
 (32-nd element is odd).
 Our RF = 3
 Cassandra version 2.0.4



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-6629) Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL 1

2014-01-28 Thread Roman Skvazh (JIRA)

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

Roman Skvazh commented on CASSANDRA-6629:
-

Does this fix (idx--) solve problem with read repair?

 Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL  1
 

 Key: CASSANDRA-6629
 URL: https://issues.apache.org/jira/browse/CASSANDRA-6629
 Project: Cassandra
  Issue Type: Bug
  Components: API
 Environment: 15 nodes, 2.0.4, RF=3
Reporter: Roman Skvazh
Assignee: Mikhail Stepura
 Fix For: 2.0.5


 I've got this error in system.log on all coordinators
 {noformat}
 ERROR [Thrift:37555] 2014-01-28 19:53:51,547 CustomTThreadPoolServer.java 
 (line 212) Error occurred during processing of message.
 java.lang.ArrayIndexOutOfBoundsException: -1
 at java.util.ArrayList.elementData(ArrayList.java:400)
 at java.util.ArrayList.remove(ArrayList.java:477)
 at 
 org.apache.cassandra.db.ArrayBackedSortedColumns$ReverseSortedCollection$1.remove(ArrayBackedSortedColumns.java:373)
 at 
 org.apache.cassandra.db.filter.SliceQueryFilter.trim(SliceQueryFilter.java:249)
 at 
 org.apache.cassandra.db.SliceFromReadCommand.maybeTrim(SliceFromReadCommand.java:101)
 at 
 org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:1370)
 at 
 org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:1189)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:188)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:58)
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:188)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:212)
 at 
 org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1958)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4486)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4470)
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
 at 
 org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 {noformat}
 It's occurred on coordinator (not always primary or secondary of this uid-PK) 
 when I execute query (PHP or Python client got TSocket read 0 bytes 
 exception):
 {code:sql}SELECT * FROM home_timeline WHERE uid = 0x52dcbc794989a6ea2c8b4569 
 ORDER BY tuuid DESC LIMIT 32{code}
 If limit  32, then its ok. When ORDER ... ASC its ok. When ConsistencyLevel 
 1 its ok.
 On one node data is inconsistent with two others, and read repair won't work 
 (32-nd element is odd).
 Our RF = 3
 Cassandra version 2.0.4



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-6629) Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL 1

2014-01-28 Thread Roman Skvazh (JIRA)

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

Roman Skvazh commented on CASSANDRA-6629:
-

Wow. It seems nodetool scrub on node with odd row helped to me. Read repair 
restore that 32-nd row on other replicas, this CQL query worked properly and 
without exception now...

 Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL  1
 

 Key: CASSANDRA-6629
 URL: https://issues.apache.org/jira/browse/CASSANDRA-6629
 Project: Cassandra
  Issue Type: Bug
  Components: API
 Environment: 15 nodes, 2.0.4, RF=3
Reporter: Roman Skvazh
Assignee: Mikhail Stepura
 Fix For: 2.0.5


 I've got this error in system.log on all coordinators
 {noformat}
 ERROR [Thrift:37555] 2014-01-28 19:53:51,547 CustomTThreadPoolServer.java 
 (line 212) Error occurred during processing of message.
 java.lang.ArrayIndexOutOfBoundsException: -1
 at java.util.ArrayList.elementData(ArrayList.java:400)
 at java.util.ArrayList.remove(ArrayList.java:477)
 at 
 org.apache.cassandra.db.ArrayBackedSortedColumns$ReverseSortedCollection$1.remove(ArrayBackedSortedColumns.java:373)
 at 
 org.apache.cassandra.db.filter.SliceQueryFilter.trim(SliceQueryFilter.java:249)
 at 
 org.apache.cassandra.db.SliceFromReadCommand.maybeTrim(SliceFromReadCommand.java:101)
 at 
 org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:1370)
 at 
 org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:1189)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:188)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:58)
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:188)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:212)
 at 
 org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1958)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4486)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4470)
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
 at 
 org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 {noformat}
 It's occurred on coordinator (not always primary or secondary of this uid-PK) 
 when I execute query (PHP or Python client got TSocket read 0 bytes 
 exception):
 {code:sql}SELECT * FROM home_timeline WHERE uid = 0x52dcbc794989a6ea2c8b4569 
 ORDER BY tuuid DESC LIMIT 32{code}
 If limit  32, then its ok. When ORDER ... ASC its ok. When ConsistencyLevel 
 1 its ok.
 On one node data is inconsistent with two others, and read repair won't work 
 (32-nd element is odd).
 Our RF = 3
 Cassandra version 2.0.4



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-6629) Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL 1

2014-01-28 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko commented on CASSANDRA-6629:
--

Wouldn't it be simpler to just alter remove() to return columns.remove(idx + 1) 
?

 Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL  1
 

 Key: CASSANDRA-6629
 URL: https://issues.apache.org/jira/browse/CASSANDRA-6629
 Project: Cassandra
  Issue Type: Bug
  Components: API
 Environment: 15 nodes, 2.0.4, RF=3
Reporter: Roman Skvazh
Assignee: Mikhail Stepura
 Fix For: 2.0.5

 Attachments: CASSANDRA-2.0-6629.patch


 I've got this error in system.log on all coordinators
 {noformat}
 ERROR [Thrift:37555] 2014-01-28 19:53:51,547 CustomTThreadPoolServer.java 
 (line 212) Error occurred during processing of message.
 java.lang.ArrayIndexOutOfBoundsException: -1
 at java.util.ArrayList.elementData(ArrayList.java:400)
 at java.util.ArrayList.remove(ArrayList.java:477)
 at 
 org.apache.cassandra.db.ArrayBackedSortedColumns$ReverseSortedCollection$1.remove(ArrayBackedSortedColumns.java:373)
 at 
 org.apache.cassandra.db.filter.SliceQueryFilter.trim(SliceQueryFilter.java:249)
 at 
 org.apache.cassandra.db.SliceFromReadCommand.maybeTrim(SliceFromReadCommand.java:101)
 at 
 org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:1370)
 at 
 org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:1189)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:188)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:58)
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:188)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:212)
 at 
 org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1958)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4486)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4470)
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
 at 
 org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 {noformat}
 It's occurred on coordinator (not always primary or secondary of this uid-PK) 
 when I execute query (PHP or Python client got TSocket read 0 bytes 
 exception):
 {code:sql}SELECT * FROM home_timeline WHERE uid = 0x52dcbc794989a6ea2c8b4569 
 ORDER BY tuuid DESC LIMIT 32{code}
 If limit  32, then its ok. When ORDER ... ASC its ok. When ConsistencyLevel 
 1 its ok.
 On one node data is inconsistent with two others, and read repair won't work 
 (32-nd element is odd).
 Our RF = 3
 Cassandra version 2.0.4



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-6629) Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL 1

2014-01-28 Thread Mikhail Stepura (JIRA)

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

Mikhail Stepura commented on CASSANDRA-6629:


bq. Wouldn't it be simpler to just alter remove() to return columns.remove(idx 
+ 1) ?

In this case you'll be able to call {{remove}} arbitrary number of times, 
without calling {{next}} at all, which breaks Iterator's contract. 
But yes, that will fix the original problem.


 Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL  1
 

 Key: CASSANDRA-6629
 URL: https://issues.apache.org/jira/browse/CASSANDRA-6629
 Project: Cassandra
  Issue Type: Bug
  Components: API
 Environment: 15 nodes, 2.0.4, RF=3
Reporter: Roman Skvazh
Assignee: Mikhail Stepura
 Fix For: 2.0.5

 Attachments: CASSANDRA-2.0-6629.patch


 I've got this error in system.log on all coordinators
 {noformat}
 ERROR [Thrift:37555] 2014-01-28 19:53:51,547 CustomTThreadPoolServer.java 
 (line 212) Error occurred during processing of message.
 java.lang.ArrayIndexOutOfBoundsException: -1
 at java.util.ArrayList.elementData(ArrayList.java:400)
 at java.util.ArrayList.remove(ArrayList.java:477)
 at 
 org.apache.cassandra.db.ArrayBackedSortedColumns$ReverseSortedCollection$1.remove(ArrayBackedSortedColumns.java:373)
 at 
 org.apache.cassandra.db.filter.SliceQueryFilter.trim(SliceQueryFilter.java:249)
 at 
 org.apache.cassandra.db.SliceFromReadCommand.maybeTrim(SliceFromReadCommand.java:101)
 at 
 org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:1370)
 at 
 org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:1189)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:188)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:58)
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:188)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:212)
 at 
 org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1958)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4486)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4470)
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
 at 
 org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 {noformat}
 It's occurred on coordinator (not always primary or secondary of this uid-PK) 
 when I execute query (PHP or Python client got TSocket read 0 bytes 
 exception):
 {code:sql}SELECT * FROM home_timeline WHERE uid = 0x52dcbc794989a6ea2c8b4569 
 ORDER BY tuuid DESC LIMIT 32{code}
 If limit  32, then its ok. When ORDER ... ASC its ok. When ConsistencyLevel 
 1 its ok.
 On one node data is inconsistent with two others, and read repair won't work 
 (32-nd element is odd).
 Our RF = 3
 Cassandra version 2.0.4



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-6629) Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL 1

2014-01-28 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko commented on CASSANDRA-6629:
--

All right. I don't like the two indexes though. Can we just get away with a 
'nextCalled' boolean? set it to true in next(), set it back to false in 
remove()?

That, and I'd rather we just threw IllegalStateException with no message, like 
the stdlib iterators do (w/ no need for Preconditions). The last one is a 
nit/taste thing, feel free to ignore.

 Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL  1
 

 Key: CASSANDRA-6629
 URL: https://issues.apache.org/jira/browse/CASSANDRA-6629
 Project: Cassandra
  Issue Type: Bug
  Components: API
 Environment: 15 nodes, 2.0.4, RF=3
Reporter: Roman Skvazh
Assignee: Mikhail Stepura
 Fix For: 2.0.5

 Attachments: CASSANDRA-2.0-6629.patch


 I've got this error in system.log on all coordinators
 {noformat}
 ERROR [Thrift:37555] 2014-01-28 19:53:51,547 CustomTThreadPoolServer.java 
 (line 212) Error occurred during processing of message.
 java.lang.ArrayIndexOutOfBoundsException: -1
 at java.util.ArrayList.elementData(ArrayList.java:400)
 at java.util.ArrayList.remove(ArrayList.java:477)
 at 
 org.apache.cassandra.db.ArrayBackedSortedColumns$ReverseSortedCollection$1.remove(ArrayBackedSortedColumns.java:373)
 at 
 org.apache.cassandra.db.filter.SliceQueryFilter.trim(SliceQueryFilter.java:249)
 at 
 org.apache.cassandra.db.SliceFromReadCommand.maybeTrim(SliceFromReadCommand.java:101)
 at 
 org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:1370)
 at 
 org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:1189)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:188)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:58)
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:188)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:212)
 at 
 org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1958)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4486)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4470)
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
 at 
 org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 {noformat}
 It's occurred on coordinator (not always primary or secondary of this uid-PK) 
 when I execute query (PHP or Python client got TSocket read 0 bytes 
 exception):
 {code:sql}SELECT * FROM home_timeline WHERE uid = 0x52dcbc794989a6ea2c8b4569 
 ORDER BY tuuid DESC LIMIT 32{code}
 If limit  32, then its ok. When ORDER ... ASC its ok. When ConsistencyLevel 
 1 its ok.
 On one node data is inconsistent with two others, and read repair won't work 
 (32-nd element is odd).
 Our RF = 3
 Cassandra version 2.0.4



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-6629) Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL 1

2014-01-28 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko commented on CASSANDRA-6629:
--

Oh, and 1.2 looks affected as well.

 Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL  1
 

 Key: CASSANDRA-6629
 URL: https://issues.apache.org/jira/browse/CASSANDRA-6629
 Project: Cassandra
  Issue Type: Bug
  Components: API
 Environment: 15 nodes, 2.0.4, RF=3
Reporter: Roman Skvazh
Assignee: Mikhail Stepura
 Fix For: 2.0.5

 Attachments: CASSANDRA-2.0-6629.patch


 I've got this error in system.log on all coordinators
 {noformat}
 ERROR [Thrift:37555] 2014-01-28 19:53:51,547 CustomTThreadPoolServer.java 
 (line 212) Error occurred during processing of message.
 java.lang.ArrayIndexOutOfBoundsException: -1
 at java.util.ArrayList.elementData(ArrayList.java:400)
 at java.util.ArrayList.remove(ArrayList.java:477)
 at 
 org.apache.cassandra.db.ArrayBackedSortedColumns$ReverseSortedCollection$1.remove(ArrayBackedSortedColumns.java:373)
 at 
 org.apache.cassandra.db.filter.SliceQueryFilter.trim(SliceQueryFilter.java:249)
 at 
 org.apache.cassandra.db.SliceFromReadCommand.maybeTrim(SliceFromReadCommand.java:101)
 at 
 org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:1370)
 at 
 org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:1189)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:188)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:58)
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:188)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:212)
 at 
 org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1958)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4486)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4470)
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
 at 
 org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 {noformat}
 It's occurred on coordinator (not always primary or secondary of this uid-PK) 
 when I execute query (PHP or Python client got TSocket read 0 bytes 
 exception):
 {code:sql}SELECT * FROM home_timeline WHERE uid = 0x52dcbc794989a6ea2c8b4569 
 ORDER BY tuuid DESC LIMIT 32{code}
 If limit  32, then its ok. When ORDER ... ASC its ok. When ConsistencyLevel 
 1 its ok.
 On one node data is inconsistent with two others, and read repair won't work 
 (32-nd element is odd).
 Our RF = 3
 Cassandra version 2.0.4



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-6629) Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL 1

2014-01-28 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko commented on CASSANDRA-6629:
--

LGTM, go ahead.

nit: missing spaces around '+', and I'd rather just see IllegalStateException() 
there w/ null message - it's not like there can be several reasons for an 
exception here.

 Coordinator's java.lang.ArrayIndexOutOfBoundsException: -1 with CL  1
 

 Key: CASSANDRA-6629
 URL: https://issues.apache.org/jira/browse/CASSANDRA-6629
 Project: Cassandra
  Issue Type: Bug
  Components: API
 Environment: 15 nodes, 2.0.4, RF=3
Reporter: Roman Skvazh
Assignee: Mikhail Stepura
 Fix For: 2.0.5

 Attachments: CASSANDRA-2-6629-v2.patch, CASSANDRA-2.0-6629.patch


 I've got this error in system.log on all coordinators
 {noformat}
 ERROR [Thrift:37555] 2014-01-28 19:53:51,547 CustomTThreadPoolServer.java 
 (line 212) Error occurred during processing of message.
 java.lang.ArrayIndexOutOfBoundsException: -1
 at java.util.ArrayList.elementData(ArrayList.java:400)
 at java.util.ArrayList.remove(ArrayList.java:477)
 at 
 org.apache.cassandra.db.ArrayBackedSortedColumns$ReverseSortedCollection$1.remove(ArrayBackedSortedColumns.java:373)
 at 
 org.apache.cassandra.db.filter.SliceQueryFilter.trim(SliceQueryFilter.java:249)
 at 
 org.apache.cassandra.db.SliceFromReadCommand.maybeTrim(SliceFromReadCommand.java:101)
 at 
 org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:1370)
 at 
 org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:1189)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:188)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163)
 at 
 org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:58)
 at 
 org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:188)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222)
 at 
 org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:212)
 at 
 org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1958)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4486)
 at 
 org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4470)
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
 at 
 org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 {noformat}
 It's occurred on coordinator (not always primary or secondary of this uid-PK) 
 when I execute query (PHP or Python client got TSocket read 0 bytes 
 exception):
 {code:sql}SELECT * FROM home_timeline WHERE uid = 0x52dcbc794989a6ea2c8b4569 
 ORDER BY tuuid DESC LIMIT 32{code}
 If limit  32, then its ok. When ORDER ... ASC its ok. When ConsistencyLevel 
 1 its ok.
 On one node data is inconsistent with two others, and read repair won't work 
 (32-nd element is odd).
 Our RF = 3
 Cassandra version 2.0.4



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)