[jira] [Updated] (CASSANDRA-10908) client_encryption seems to prevent startup in 2.2.4 and 3.1

2015-12-18 Thread Will Hayworth (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Will Hayworth updated CASSANDRA-10908:
--
Summary: client_encryption seems to prevent startup in 2.2.4 and 3.1  (was: 
client_encryption seems to prevent startup in 3.1)

> client_encryption seems to prevent startup in 2.2.4 and 3.1
> ---
>
> Key: CASSANDRA-10908
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10908
> Project: Cassandra
>  Issue Type: Bug
> Environment: Amazon Linux 2015.09
>Reporter: Will Hayworth
> Attachments: 2.2.4-client-log-trace.log, client_encryption.log
>
>
> Hi there! I'm a total Cassandra novice, so please forgive me if this report 
> is lacking or malformed. I've been setting up a new cluster and trying to use 
> 3.1 but I've noticed that so much as *enabling* client-to-node encryption 
> causes the node to shut down after determining there's no gossip backlog. 
> Notably, I set up node-to-node encryption beforehand and that was working 
> just fine. I thought they might be interfering with each other, but that 
> seems not to be the case. Logs attached. (Please let me know how I can be of 
> further help!)
> Thanks for looking at this,
> Will



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10908) client_encryption seems to prevent startup in 3.1

2015-12-18 Thread Will Hayworth (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15065289#comment-15065289
 ] 

Will Hayworth commented on CASSANDRA-10908:
---

I'm noticing this happening with 2.2.4, too. Puzzling. :( Attaching trace-level 
logs--the server just dies silently.

> client_encryption seems to prevent startup in 3.1
> -
>
> Key: CASSANDRA-10908
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10908
> Project: Cassandra
>  Issue Type: Bug
> Environment: Amazon Linux 2015.09
>Reporter: Will Hayworth
> Attachments: 2.2.4-client-log-trace.log, client_encryption.log
>
>
> Hi there! I'm a total Cassandra novice, so please forgive me if this report 
> is lacking or malformed. I've been setting up a new cluster and trying to use 
> 3.1 but I've noticed that so much as *enabling* client-to-node encryption 
> causes the node to shut down after determining there's no gossip backlog. 
> Notably, I set up node-to-node encryption beforehand and that was working 
> just fine. I thought they might be interfering with each other, but that 
> seems not to be the case. Logs attached. (Please let me know how I can be of 
> further help!)
> Thanks for looking at this,
> Will



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10908) client_encryption seems to prevent startup in 3.1

2015-12-18 Thread Will Hayworth (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Will Hayworth updated CASSANDRA-10908:
--
Attachment: 2.2.4-client-log-trace.log

> client_encryption seems to prevent startup in 3.1
> -
>
> Key: CASSANDRA-10908
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10908
> Project: Cassandra
>  Issue Type: Bug
> Environment: Amazon Linux 2015.09
>Reporter: Will Hayworth
> Attachments: 2.2.4-client-log-trace.log, client_encryption.log
>
>
> Hi there! I'm a total Cassandra novice, so please forgive me if this report 
> is lacking or malformed. I've been setting up a new cluster and trying to use 
> 3.1 but I've noticed that so much as *enabling* client-to-node encryption 
> causes the node to shut down after determining there's no gossip backlog. 
> Notably, I set up node-to-node encryption beforehand and that was working 
> just fine. I thought they might be interfering with each other, but that 
> seems not to be the case. Logs attached. (Please let me know how I can be of 
> further help!)
> Thanks for looking at this,
> Will



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (CASSANDRA-10908) client_encryption seems to prevent startup in 3.1

2015-12-18 Thread Will Hayworth (JIRA)
Will Hayworth created CASSANDRA-10908:
-

 Summary: client_encryption seems to prevent startup in 3.1
 Key: CASSANDRA-10908
 URL: https://issues.apache.org/jira/browse/CASSANDRA-10908
 Project: Cassandra
  Issue Type: Bug
 Environment: Amazon Linux 2015.09
Reporter: Will Hayworth
 Attachments: client_encryption.log

Hi there! I'm a total Cassandra novice, so please forgive me if this report is 
lacking or malformed. I've been setting up a new cluster and trying to use 3.1 
but I've noticed that so much as *enabling* client-to-node encryption causes 
the node to shut down after determining there's no gossip backlog. Notably, I 
set up node-to-node encryption beforehand and that was working just fine. I 
thought they might be interfering with each other, but that seems not to be the 
case. Logs attached. (Please let me know how I can be of further help!)

Thanks for looking at this,
Will



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (CASSANDRA-10907) Nodetool snapshot should provide an option to skip flushing

2015-12-18 Thread Anubhav Kale (JIRA)
Anubhav Kale created CASSANDRA-10907:


 Summary: Nodetool snapshot should provide an option to skip 
flushing
 Key: CASSANDRA-10907
 URL: https://issues.apache.org/jira/browse/CASSANDRA-10907
 Project: Cassandra
  Issue Type: Improvement
  Components: Configuration
 Environment: PROD
Reporter: Anubhav Kale
Priority: Minor


For some practical scenarios, it doesn't matter if the data is flushed to disk 
before taking a snapshot. However, it's better to save some flushing time to 
make snapshot process quick.

As such, it will be a good idea to provide this option to snapshot command. The 
wiring from nodetool to MBean to VerbHandler should be easy. 

I can provide a patch if this makes sense.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10887) Pending range calculator gives wrong pending ranges for moves

2015-12-18 Thread sankalp kohli (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15065153#comment-15065153
 ] 

sankalp kohli commented on CASSANDRA-10887:
---

The patch is against 2.0

> Pending range calculator gives wrong pending ranges for moves
> -
>
> Key: CASSANDRA-10887
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10887
> Project: Cassandra
>  Issue Type: Bug
>  Components: Coordination
>Reporter: Richard Low
>Assignee: sankalp kohli
>Priority: Critical
> Attachments: CASSANDRA-10887.diff
>
>
> My understanding is the PendingRangeCalculator is meant to calculate who 
> should receive extra writes during range movements. However, it adds the 
> wrong ranges for moves. An extreme example of this can be seen in the 
> following reproduction. Create a 5 node cluster (I did this on 2.0.16 and 
> 2.2.4) and a keyspace RF=3 and a simple table. Then start moving a node and 
> immediately kill -9 it. Now you see a node as down and moving in the ring. 
> Try a quorum write for a partition that is stored on that node - it will fail 
> with a timeout. Further, all CAS reads or writes fail immediately with 
> unavailable exception because they attempt to include the moving node twice. 
> This is likely to be the cause of CASSANDRA-10423.
> In my example I had this ring:
> 127.0.0.1  rack1   Up Normal  170.97 KB   20.00%  
> -9223372036854775808
> 127.0.0.2  rack1   Up Normal  124.06 KB   20.00%  
> -5534023222112865485
> 127.0.0.3  rack1   Down   Moving  108.7 KB40.00%  
> 1844674407370955160
> 127.0.0.4  rack1   Up Normal  142.58 KB   0.00%   
> 1844674407370955161
> 127.0.0.5  rack1   Up Normal  118.64 KB   20.00%  
> 5534023222112865484
> Node 3 was moving to -1844674407370955160. I added logging to print the 
> pending and natural endpoints. For ranges owned by node 3, node 3 appeared in 
> pending and natural endpoints. The blockFor is increased to 3 so we’re 
> effectively doing CL.ALL operations. This manifests as write timeouts and CAS 
> unavailables when the node is down.
> The correct pending range for this scenario is node 1 is gaining the range 
> (-1844674407370955160, 1844674407370955160). So node 1 should be added as a 
> destination for writes and CAS for this range, not node 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-9428) Implement hints compression

2015-12-18 Thread Blake Eggleston (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15065084#comment-15065084
 ] 

Blake Eggleston commented on CASSANDRA-9428:


I've pushed up some additional commits to my branch addressing your points. 
Thanks for suggesting I exercise all compressor types, it uncovered some 
problems with the way I was allocating buffers, which I fixed.

> Implement hints compression
> ---
>
> Key: CASSANDRA-9428
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9428
> Project: Cassandra
>  Issue Type: Sub-task
>  Components: Coordination
>Reporter: Aleksey Yeschenko
>Assignee: Blake Eggleston
> Fix For: 3.0.x
>
>
> CASSANDRA-6230 is being implemented with compression in mind, but it's not 
> going to be implemented by the original ticket.
> Adding it on top should be relatively straight-forward, and important, since 
> there are several users in the wild that use compression interface for 
> encryption purposes. DSE is one of them (but isn't the only one). Losing 
> encryption capabilities would be a regression.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10887) Pending range calculator gives wrong pending ranges for moves

2015-12-18 Thread sankalp kohli (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15065048#comment-15065048
 ] 

sankalp kohli commented on CASSANDRA-10887:
---

I have added a patch along with many unit tests. Looks like the issue with 
moves is there since the feature was added in CASSANDRA-1427. 
This patch fixes the following issues
1) It will add the correct endpoints to the pending range not just the endpoint 
which is moving. 
2) It will remove the ranges which the endpoint is already getting. Eg: If an 
endpoint is getting range 10-20 before the move and needs range say 15-20 after 
the move, it will only add 15-20. 

I think 2) will solve the problem of duplicate endpoints in pending endpoint 
and natural endpoint. Thought I have not tested this part. 

Most of the patch is unit tests which simulate many types of moves. We should 
see if there is any case of move which is missing. 

PS: I have not tested this patch apart from the unit test :)

> Pending range calculator gives wrong pending ranges for moves
> -
>
> Key: CASSANDRA-10887
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10887
> Project: Cassandra
>  Issue Type: Bug
>  Components: Coordination
>Reporter: Richard Low
>Assignee: sankalp kohli
>Priority: Critical
> Attachments: CASSANDRA-10887.diff
>
>
> My understanding is the PendingRangeCalculator is meant to calculate who 
> should receive extra writes during range movements. However, it adds the 
> wrong ranges for moves. An extreme example of this can be seen in the 
> following reproduction. Create a 5 node cluster (I did this on 2.0.16 and 
> 2.2.4) and a keyspace RF=3 and a simple table. Then start moving a node and 
> immediately kill -9 it. Now you see a node as down and moving in the ring. 
> Try a quorum write for a partition that is stored on that node - it will fail 
> with a timeout. Further, all CAS reads or writes fail immediately with 
> unavailable exception because they attempt to include the moving node twice. 
> This is likely to be the cause of CASSANDRA-10423.
> In my example I had this ring:
> 127.0.0.1  rack1   Up Normal  170.97 KB   20.00%  
> -9223372036854775808
> 127.0.0.2  rack1   Up Normal  124.06 KB   20.00%  
> -5534023222112865485
> 127.0.0.3  rack1   Down   Moving  108.7 KB40.00%  
> 1844674407370955160
> 127.0.0.4  rack1   Up Normal  142.58 KB   0.00%   
> 1844674407370955161
> 127.0.0.5  rack1   Up Normal  118.64 KB   20.00%  
> 5534023222112865484
> Node 3 was moving to -1844674407370955160. I added logging to print the 
> pending and natural endpoints. For ranges owned by node 3, node 3 appeared in 
> pending and natural endpoints. The blockFor is increased to 3 so we’re 
> effectively doing CL.ALL operations. This manifests as write timeouts and CAS 
> unavailables when the node is down.
> The correct pending range for this scenario is node 1 is gaining the range 
> (-1844674407370955160, 1844674407370955160). So node 1 should be added as a 
> destination for writes and CAS for this range, not node 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10887) Pending range calculator gives wrong pending ranges for moves

2015-12-18 Thread sankalp kohli (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

sankalp kohli updated CASSANDRA-10887:
--
Attachment: CASSANDRA-10887.diff

> Pending range calculator gives wrong pending ranges for moves
> -
>
> Key: CASSANDRA-10887
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10887
> Project: Cassandra
>  Issue Type: Bug
>  Components: Coordination
>Reporter: Richard Low
>Assignee: sankalp kohli
>Priority: Critical
> Attachments: CASSANDRA-10887.diff
>
>
> My understanding is the PendingRangeCalculator is meant to calculate who 
> should receive extra writes during range movements. However, it adds the 
> wrong ranges for moves. An extreme example of this can be seen in the 
> following reproduction. Create a 5 node cluster (I did this on 2.0.16 and 
> 2.2.4) and a keyspace RF=3 and a simple table. Then start moving a node and 
> immediately kill -9 it. Now you see a node as down and moving in the ring. 
> Try a quorum write for a partition that is stored on that node - it will fail 
> with a timeout. Further, all CAS reads or writes fail immediately with 
> unavailable exception because they attempt to include the moving node twice. 
> This is likely to be the cause of CASSANDRA-10423.
> In my example I had this ring:
> 127.0.0.1  rack1   Up Normal  170.97 KB   20.00%  
> -9223372036854775808
> 127.0.0.2  rack1   Up Normal  124.06 KB   20.00%  
> -5534023222112865485
> 127.0.0.3  rack1   Down   Moving  108.7 KB40.00%  
> 1844674407370955160
> 127.0.0.4  rack1   Up Normal  142.58 KB   0.00%   
> 1844674407370955161
> 127.0.0.5  rack1   Up Normal  118.64 KB   20.00%  
> 5534023222112865484
> Node 3 was moving to -1844674407370955160. I added logging to print the 
> pending and natural endpoints. For ranges owned by node 3, node 3 appeared in 
> pending and natural endpoints. The blockFor is increased to 3 so we’re 
> effectively doing CL.ALL operations. This manifests as write timeouts and CAS 
> unavailables when the node is down.
> The correct pending range for this scenario is node 1 is gaining the range 
> (-1844674407370955160, 1844674407370955160). So node 1 should be added as a 
> destination for writes and CAS for this range, not node 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Assigned] (CASSANDRA-10887) Pending range calculator gives wrong pending ranges for moves

2015-12-18 Thread sankalp kohli (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

sankalp kohli reassigned CASSANDRA-10887:
-

Assignee: sankalp kohli  (was: Branimir Lambov)

> Pending range calculator gives wrong pending ranges for moves
> -
>
> Key: CASSANDRA-10887
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10887
> Project: Cassandra
>  Issue Type: Bug
>  Components: Coordination
>Reporter: Richard Low
>Assignee: sankalp kohli
>Priority: Critical
>
> My understanding is the PendingRangeCalculator is meant to calculate who 
> should receive extra writes during range movements. However, it adds the 
> wrong ranges for moves. An extreme example of this can be seen in the 
> following reproduction. Create a 5 node cluster (I did this on 2.0.16 and 
> 2.2.4) and a keyspace RF=3 and a simple table. Then start moving a node and 
> immediately kill -9 it. Now you see a node as down and moving in the ring. 
> Try a quorum write for a partition that is stored on that node - it will fail 
> with a timeout. Further, all CAS reads or writes fail immediately with 
> unavailable exception because they attempt to include the moving node twice. 
> This is likely to be the cause of CASSANDRA-10423.
> In my example I had this ring:
> 127.0.0.1  rack1   Up Normal  170.97 KB   20.00%  
> -9223372036854775808
> 127.0.0.2  rack1   Up Normal  124.06 KB   20.00%  
> -5534023222112865485
> 127.0.0.3  rack1   Down   Moving  108.7 KB40.00%  
> 1844674407370955160
> 127.0.0.4  rack1   Up Normal  142.58 KB   0.00%   
> 1844674407370955161
> 127.0.0.5  rack1   Up Normal  118.64 KB   20.00%  
> 5534023222112865484
> Node 3 was moving to -1844674407370955160. I added logging to print the 
> pending and natural endpoints. For ranges owned by node 3, node 3 appeared in 
> pending and natural endpoints. The blockFor is increased to 3 so we’re 
> effectively doing CL.ALL operations. This manifests as write timeouts and CAS 
> unavailables when the node is down.
> The correct pending range for this scenario is node 1 is gaining the range 
> (-1844674407370955160, 1844674407370955160). So node 1 should be added as a 
> destination for writes and CAS for this range, not node 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10593) Unintended interactions between commitlog archiving and commitlog recycling

2015-12-18 Thread Aleksey Yeschenko (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064976#comment-15064976
 ] 

Aleksey Yeschenko commented on CASSANDRA-10593:
---

Committed to 
[3740f815c21254bd625ad1cbe8d47aa657727a83|https://github.com/apache/cassandra/commit/3740f815c21254bd625ad1cbe8d47aa657727a83]
 and merged with 2.2, 3.0, and trunk. Thanks.

> Unintended interactions between commitlog archiving and commitlog recycling
> ---
>
> Key: CASSANDRA-10593
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10593
> Project: Cassandra
>  Issue Type: Bug
>  Components: Local Write-Read Paths
>Reporter: J.B. Langston
>Assignee: Ariel Weisberg
> Fix For: 2.1.13, 2.2.5, 3.2, 3.0.3
>
> Attachments: cassandra.yaml, commitlog_archiving.properties, 
> system.log
>
>
> Currently the comments in commitlog_archiving.properties suggest using either 
> cp or ln for the archive_command.  
> Using ln is problematic because commitlog recycling marks segments as 
> recycled once the corresponding memtables are flushed and Cassandra will no 
> longer replay them. This means it's only possible to do PITR on any records 
> that were written since the last flush.
> Using cp works, and this is currently how OpsCenter does for PITR, however 
> [~brandon.williams] has pointed out this could have some performance impact 
> because of the additional I/O overhead of copying the commitlog segments.
> Starting in 2.1, we can disable commit log recycling in cassandra.yaml so I 
> thought this would allow me to do PITR without the extra overhead of using 
> cp.  However, when I disable commitlog recycling and try to do a PITR, 
> Cassandra blows up when trying to replay the restored commit logs:
> {code}
> ERROR 16:56:42  Exception encountered during startup
> java.lang.IllegalStateException: Cannot safely construct descriptor for 
> segment, as name and header descriptors do not match ((4,1445878452545) vs 
> (4,1445876822565)): /opt/dse/backup/CommitLog-4-1445876822565.log
>   at 
> org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeRestoreArchive(CommitLogArchiver.java:207)
>  ~[cassandra-all-2.1.9.791.jar:2.1.9.791]
>   at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:116) 
> ~[cassandra-all-2.1.9.791.jar:2.1.9.791]
>   at 
> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:352) 
> ~[cassandra-all-2.1.9.791.jar:2.1.9.791]
>   at com.datastax.bdp.server.DseDaemon.setup(DseDaemon.java:335) 
> ~[dse-core-4.8.0.jar:4.8.0]
>   at 
> org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:537)
>  ~[cassandra-all-2.1.9.791.jar:2.1.9.791]
>   at com.datastax.bdp.DseModule.main(DseModule.java:75) 
> [dse-core-4.8.0.jar:4.8.0]
> java.lang.IllegalStateException: Cannot safely construct descriptor for 
> segment, as name and header descriptors do not match ((4,1445878452545) vs 
> (4,1445876822565)): /opt/dse/backup/CommitLog-4-1445876822565.log
>   at 
> org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeRestoreArchive(CommitLogArchiver.java:207)
>   at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:116)
>   at 
> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:352)
>   at com.datastax.bdp.server.DseDaemon.setup(DseDaemon.java:335)
>   at 
> org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:537)
>   at com.datastax.bdp.DseModule.main(DseModule.java:75)
> Exception encountered during startup: Cannot safely construct descriptor for 
> segment, as name and header descriptors do not match ((4,1445878452545) vs 
> (4,1445876822565)): /opt/dse/backup/CommitLog-4-1445876822565.log
> INFO  16:56:42  DSE shutting down...
> INFO  16:56:42  All plugins are stopped.
> ERROR 16:56:42  Exception in thread Thread[Thread-2,5,main]
> java.lang.AssertionError: null
>   at 
> org.apache.cassandra.gms.Gossiper.addLocalApplicationState(Gossiper.java:1403)
>  ~[cassandra-all-2.1.9.791.jar:2.1.9.791]
>   at com.datastax.bdp.gms.DseState.setActiveStatus(DseState.java:196) 
> ~[dse-core-4.8.0.jar:4.8.0]
>   at com.datastax.bdp.server.DseDaemon.preStop(DseDaemon.java:426) 
> ~[dse-core-4.8.0.jar:4.8.0]
>   at com.datastax.bdp.server.DseDaemon.safeStop(DseDaemon.java:436) 
> ~[dse-core-4.8.0.jar:4.8.0]
>   at com.datastax.bdp.server.DseDaemon$1.run(DseDaemon.java:676) 
> ~[dse-core-4.8.0.jar:4.8.0]
>   at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_31]
> {code}
> For the sake of completeness, I also tested using cp for the archive_command 
> and commitlog recycling disabled, and PITR works as expected, but this of 
> course defeats the point.
> It would be good 

[jira] [Comment Edited] (CASSANDRA-10593) Unintended interactions between commitlog archiving and commitlog recycling

2015-12-18 Thread Aleksey Yeschenko (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064976#comment-15064976
 ] 

Aleksey Yeschenko edited comment on CASSANDRA-10593 at 12/18/15 11:41 PM:
--

Committed as 
[3740f815c21254bd625ad1cbe8d47aa657727a83|https://github.com/apache/cassandra/commit/3740f815c21254bd625ad1cbe8d47aa657727a83]
 to 2.1 and merged with 2.2, 3.0, and trunk. Thanks.


was (Author: iamaleksey):
Committed to 
[3740f815c21254bd625ad1cbe8d47aa657727a83|https://github.com/apache/cassandra/commit/3740f815c21254bd625ad1cbe8d47aa657727a83]
 and merged with 2.2, 3.0, and trunk. Thanks.

> Unintended interactions between commitlog archiving and commitlog recycling
> ---
>
> Key: CASSANDRA-10593
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10593
> Project: Cassandra
>  Issue Type: Bug
>  Components: Local Write-Read Paths
>Reporter: J.B. Langston
>Assignee: Ariel Weisberg
> Fix For: 2.1.13, 2.2.5, 3.2, 3.0.3
>
> Attachments: cassandra.yaml, commitlog_archiving.properties, 
> system.log
>
>
> Currently the comments in commitlog_archiving.properties suggest using either 
> cp or ln for the archive_command.  
> Using ln is problematic because commitlog recycling marks segments as 
> recycled once the corresponding memtables are flushed and Cassandra will no 
> longer replay them. This means it's only possible to do PITR on any records 
> that were written since the last flush.
> Using cp works, and this is currently how OpsCenter does for PITR, however 
> [~brandon.williams] has pointed out this could have some performance impact 
> because of the additional I/O overhead of copying the commitlog segments.
> Starting in 2.1, we can disable commit log recycling in cassandra.yaml so I 
> thought this would allow me to do PITR without the extra overhead of using 
> cp.  However, when I disable commitlog recycling and try to do a PITR, 
> Cassandra blows up when trying to replay the restored commit logs:
> {code}
> ERROR 16:56:42  Exception encountered during startup
> java.lang.IllegalStateException: Cannot safely construct descriptor for 
> segment, as name and header descriptors do not match ((4,1445878452545) vs 
> (4,1445876822565)): /opt/dse/backup/CommitLog-4-1445876822565.log
>   at 
> org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeRestoreArchive(CommitLogArchiver.java:207)
>  ~[cassandra-all-2.1.9.791.jar:2.1.9.791]
>   at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:116) 
> ~[cassandra-all-2.1.9.791.jar:2.1.9.791]
>   at 
> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:352) 
> ~[cassandra-all-2.1.9.791.jar:2.1.9.791]
>   at com.datastax.bdp.server.DseDaemon.setup(DseDaemon.java:335) 
> ~[dse-core-4.8.0.jar:4.8.0]
>   at 
> org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:537)
>  ~[cassandra-all-2.1.9.791.jar:2.1.9.791]
>   at com.datastax.bdp.DseModule.main(DseModule.java:75) 
> [dse-core-4.8.0.jar:4.8.0]
> java.lang.IllegalStateException: Cannot safely construct descriptor for 
> segment, as name and header descriptors do not match ((4,1445878452545) vs 
> (4,1445876822565)): /opt/dse/backup/CommitLog-4-1445876822565.log
>   at 
> org.apache.cassandra.db.commitlog.CommitLogArchiver.maybeRestoreArchive(CommitLogArchiver.java:207)
>   at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:116)
>   at 
> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:352)
>   at com.datastax.bdp.server.DseDaemon.setup(DseDaemon.java:335)
>   at 
> org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:537)
>   at com.datastax.bdp.DseModule.main(DseModule.java:75)
> Exception encountered during startup: Cannot safely construct descriptor for 
> segment, as name and header descriptors do not match ((4,1445878452545) vs 
> (4,1445876822565)): /opt/dse/backup/CommitLog-4-1445876822565.log
> INFO  16:56:42  DSE shutting down...
> INFO  16:56:42  All plugins are stopped.
> ERROR 16:56:42  Exception in thread Thread[Thread-2,5,main]
> java.lang.AssertionError: null
>   at 
> org.apache.cassandra.gms.Gossiper.addLocalApplicationState(Gossiper.java:1403)
>  ~[cassandra-all-2.1.9.791.jar:2.1.9.791]
>   at com.datastax.bdp.gms.DseState.setActiveStatus(DseState.java:196) 
> ~[dse-core-4.8.0.jar:4.8.0]
>   at com.datastax.bdp.server.DseDaemon.preStop(DseDaemon.java:426) 
> ~[dse-core-4.8.0.jar:4.8.0]
>   at com.datastax.bdp.server.DseDaemon.safeStop(DseDaemon.java:436) 
> ~[dse-core-4.8.0.jar:4.8.0]
>   at com.datastax.bdp.server.DseDaemon$1.run(DseDaemon.java:676) 
> ~[dse-core-4.8.0.jar:4.8.0]
> 

[3/4] cassandra git commit: Merge branch 'cassandra-2.2' into cassandra-3.0

2015-12-18 Thread aleksey
Merge branch 'cassandra-2.2' into cassandra-3.0


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/d5326d4a
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/d5326d4a
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/d5326d4a

Branch: refs/heads/trunk
Commit: d5326d4aa5d1d89d36c0600508323ccf8fa109da
Parents: 2800bf1 c26b397
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 23:39:09 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:39:09 2015 +

--
 CHANGES.txt | 1 +
 .../apache/cassandra/db/commitlog/CommitLogArchiver.java| 9 ++---
 2 files changed, 7 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d5326d4a/CHANGES.txt
--

http://git-wip-us.apache.org/repos/asf/cassandra/blob/d5326d4a/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
--



[1/4] cassandra git commit: Fix bugs in commit log archiving startup behavior

2015-12-18 Thread aleksey
Repository: cassandra
Updated Branches:
  refs/heads/trunk 01b3508e0 -> 7e4737716


Fix bugs in commit log archiving startup behavior

patch by Ariel Weisberg; reviewed by Branimir Lambov for CASSANDRA-10593


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/3740f815
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/3740f815
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/3740f815

Branch: refs/heads/trunk
Commit: 3740f815c21254bd625ad1cbe8d47aa657727a83
Parents: 124f1bd
Author: Ariel Weisberg 
Authored: Thu Dec 3 14:37:26 2015 -0500
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:37:05 2015 +

--
 CHANGES.txt|  1 +
 .../cassandra/db/commitlog/CommitLogArchiver.java  | 17 ++---
 .../db/commitlog/CommitLogSegmentManager.java  |  3 ++-
 3 files changed, 13 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/3740f815/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 90f1bca..581784e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 2.1.13
+ * Fix bugs in commit log archiving startup behavior (CASSANDRA-10593)
  * (cqlsh) further optimise COPY FROM (CASSANDRA-9302)
  * Allow CREATE TABLE WITH ID (CASSANDRA-9179)
  * Make Stress compiles within eclipse (CASSANDRA-10807)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/3740f815/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
--
diff --git a/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java 
b/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
index 91f3179..8d9a6b3 100644
--- a/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
+++ b/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
@@ -1,5 +1,5 @@
 /*
- * 
+ *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -7,16 +7,16 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  */
 package org.apache.cassandra.db.commitlog;
 
@@ -173,10 +173,13 @@ public class CommitLogArchiver
 }
 catch (ExecutionException e)
 {
-if (e.getCause() instanceof IOException)
+if (e.getCause() instanceof RuntimeException)
 {
-logger.error("Looks like the archiving of file {} failed 
earlier, cassandra is going to ignore this segment for now.", name);
-return false;
+if (e.getCause().getCause() instanceof IOException)
+{
+logger.error("Looks like the archiving of file {} failed 
earlier, cassandra is going to ignore this segment for now.", name, 
e.getCause().getCause());
+return false;
+}
 }
 throw new RuntimeException(e);
 }

http://git-wip-us.apache.org/repos/asf/cassandra/blob/3740f815/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
--
diff --git 
a/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java 
b/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
index 9310d67..0ea54ab 100644
--- a/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
+++ b/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
@@ -383,7 +383,8 @@ public class CommitLogSegmentManager
 void recycleSegment(final File file)
 {
 if (isCapExceeded()
-|| 
CommitLogDescriptor.fromFileName(file.getName()).getMessagingVersion() != 
MessagingService.current_version)
+|| 
CommitLogDescriptor.fromFileName(file.getName()).getMessagingVersion() != 
MessagingService.current_version
+|| !DatabaseDescriptor.getCommitLogSegmentRecyclingEnabled())
 {
 // (don't decrease managed size, since this was never a "live" 
segment)
 logger.debug("(Unopened) segment {} is no longer needed and will 

[2/3] cassandra git commit: Merge branch 'cassandra-2.1' into cassandra-2.2

2015-12-18 Thread aleksey
Merge branch 'cassandra-2.1' into cassandra-2.2


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c26b3971
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c26b3971
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c26b3971

Branch: refs/heads/cassandra-3.0
Commit: c26b3971622f55589f4f080516c9e01311b4e7b1
Parents: bcd68b5 3740f81
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 23:38:40 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:38:40 2015 +

--
 CHANGES.txt | 1 +
 .../apache/cassandra/db/commitlog/CommitLogArchiver.java| 9 ++---
 2 files changed, 7 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/c26b3971/CHANGES.txt
--
diff --cc CHANGES.txt
index 88ef42e,581784e..1ff1a5c
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -1,12 -1,5 +1,13 @@@
 -2.1.13
 +2.2.5
 + * (cqlsh) show correct column names for empty result sets (CASSANDRA-9813)
 + * Add new types to Stress (CASSANDRA-9556)
 + * Add property to allow listening on broadcast interface (CASSANDRA-9748)
 + * Fix regression in split size on CqlInputFormat (CASSANDRA-10835)
 + * Better handling of SSL connection errors inter-node (CASSANDRA-10816)
 + * Disable reloading of GossipingPropertyFileSnitch (CASSANDRA-9474)
 + * Verify tables in pseudo-system keyspaces at startup (CASSANDRA-10761)
 +Merged from 2.1:
+  * Fix bugs in commit log archiving startup behavior (CASSANDRA-10593)
   * (cqlsh) further optimise COPY FROM (CASSANDRA-9302)
   * Allow CREATE TABLE WITH ID (CASSANDRA-9179)
   * Make Stress compiles within eclipse (CASSANDRA-10807)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/c26b3971/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
--



[4/4] cassandra git commit: Merge branch 'cassandra-3.0' into trunk

2015-12-18 Thread aleksey
Merge branch 'cassandra-3.0' into trunk


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/7e473771
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/7e473771
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/7e473771

Branch: refs/heads/trunk
Commit: 7e47377164949d23a468cf012736efb96f1e7dcc
Parents: 01b3508 d5326d4
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 23:39:37 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:39:37 2015 +

--
 CHANGES.txt | 1 +
 .../apache/cassandra/db/commitlog/CommitLogArchiver.java| 9 ++---
 2 files changed, 7 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/7e473771/CHANGES.txt
--
diff --cc CHANGES.txt
index 0df24d5,d0f1613..bf2ca61
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -30,7 -7,12 +30,8 @@@ Merged from 2.2
   * (cqlsh) show correct column names for empty result sets (CASSANDRA-9813)
   * Add new types to Stress (CASSANDRA-9556)
   * Add property to allow listening on broadcast interface (CASSANDRA-9748)
 - * Fix regression in split size on CqlInputFormat (CASSANDRA-10835)
 - * Better handling of SSL connection errors inter-node (CASSANDRA-10816)
 - * Disable reloading of GossipingPropertyFileSnitch (CASSANDRA-9474)
 - * Verify tables in pseudo-system keyspaces at startup (CASSANDRA-10761)
  Merged from 2.1:
+  * Fix bugs in commit log archiving startup behavior (CASSANDRA-10593)
   * (cqlsh) further optimise COPY FROM (CASSANDRA-9302)
   * Allow CREATE TABLE WITH ID (CASSANDRA-9179)
   * Make Stress compiles within eclipse (CASSANDRA-10807)



[2/4] cassandra git commit: Merge branch 'cassandra-2.1' into cassandra-2.2

2015-12-18 Thread aleksey
Merge branch 'cassandra-2.1' into cassandra-2.2


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c26b3971
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c26b3971
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c26b3971

Branch: refs/heads/trunk
Commit: c26b3971622f55589f4f080516c9e01311b4e7b1
Parents: bcd68b5 3740f81
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 23:38:40 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:38:40 2015 +

--
 CHANGES.txt | 1 +
 .../apache/cassandra/db/commitlog/CommitLogArchiver.java| 9 ++---
 2 files changed, 7 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/c26b3971/CHANGES.txt
--
diff --cc CHANGES.txt
index 88ef42e,581784e..1ff1a5c
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -1,12 -1,5 +1,13 @@@
 -2.1.13
 +2.2.5
 + * (cqlsh) show correct column names for empty result sets (CASSANDRA-9813)
 + * Add new types to Stress (CASSANDRA-9556)
 + * Add property to allow listening on broadcast interface (CASSANDRA-9748)
 + * Fix regression in split size on CqlInputFormat (CASSANDRA-10835)
 + * Better handling of SSL connection errors inter-node (CASSANDRA-10816)
 + * Disable reloading of GossipingPropertyFileSnitch (CASSANDRA-9474)
 + * Verify tables in pseudo-system keyspaces at startup (CASSANDRA-10761)
 +Merged from 2.1:
+  * Fix bugs in commit log archiving startup behavior (CASSANDRA-10593)
   * (cqlsh) further optimise COPY FROM (CASSANDRA-9302)
   * Allow CREATE TABLE WITH ID (CASSANDRA-9179)
   * Make Stress compiles within eclipse (CASSANDRA-10807)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/c26b3971/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
--



[3/3] cassandra git commit: Merge branch 'cassandra-2.2' into cassandra-3.0

2015-12-18 Thread aleksey
Merge branch 'cassandra-2.2' into cassandra-3.0


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/d5326d4a
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/d5326d4a
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/d5326d4a

Branch: refs/heads/cassandra-3.0
Commit: d5326d4aa5d1d89d36c0600508323ccf8fa109da
Parents: 2800bf1 c26b397
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 23:39:09 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:39:09 2015 +

--
 CHANGES.txt | 1 +
 .../apache/cassandra/db/commitlog/CommitLogArchiver.java| 9 ++---
 2 files changed, 7 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d5326d4a/CHANGES.txt
--

http://git-wip-us.apache.org/repos/asf/cassandra/blob/d5326d4a/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
--



[1/3] cassandra git commit: Fix bugs in commit log archiving startup behavior

2015-12-18 Thread aleksey
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.0 2800bf108 -> d5326d4aa


Fix bugs in commit log archiving startup behavior

patch by Ariel Weisberg; reviewed by Branimir Lambov for CASSANDRA-10593


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/3740f815
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/3740f815
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/3740f815

Branch: refs/heads/cassandra-3.0
Commit: 3740f815c21254bd625ad1cbe8d47aa657727a83
Parents: 124f1bd
Author: Ariel Weisberg 
Authored: Thu Dec 3 14:37:26 2015 -0500
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:37:05 2015 +

--
 CHANGES.txt|  1 +
 .../cassandra/db/commitlog/CommitLogArchiver.java  | 17 ++---
 .../db/commitlog/CommitLogSegmentManager.java  |  3 ++-
 3 files changed, 13 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/3740f815/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 90f1bca..581784e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 2.1.13
+ * Fix bugs in commit log archiving startup behavior (CASSANDRA-10593)
  * (cqlsh) further optimise COPY FROM (CASSANDRA-9302)
  * Allow CREATE TABLE WITH ID (CASSANDRA-9179)
  * Make Stress compiles within eclipse (CASSANDRA-10807)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/3740f815/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
--
diff --git a/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java 
b/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
index 91f3179..8d9a6b3 100644
--- a/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
+++ b/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
@@ -1,5 +1,5 @@
 /*
- * 
+ *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -7,16 +7,16 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  */
 package org.apache.cassandra.db.commitlog;
 
@@ -173,10 +173,13 @@ public class CommitLogArchiver
 }
 catch (ExecutionException e)
 {
-if (e.getCause() instanceof IOException)
+if (e.getCause() instanceof RuntimeException)
 {
-logger.error("Looks like the archiving of file {} failed 
earlier, cassandra is going to ignore this segment for now.", name);
-return false;
+if (e.getCause().getCause() instanceof IOException)
+{
+logger.error("Looks like the archiving of file {} failed 
earlier, cassandra is going to ignore this segment for now.", name, 
e.getCause().getCause());
+return false;
+}
 }
 throw new RuntimeException(e);
 }

http://git-wip-us.apache.org/repos/asf/cassandra/blob/3740f815/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
--
diff --git 
a/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java 
b/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
index 9310d67..0ea54ab 100644
--- a/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
+++ b/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
@@ -383,7 +383,8 @@ public class CommitLogSegmentManager
 void recycleSegment(final File file)
 {
 if (isCapExceeded()
-|| 
CommitLogDescriptor.fromFileName(file.getName()).getMessagingVersion() != 
MessagingService.current_version)
+|| 
CommitLogDescriptor.fromFileName(file.getName()).getMessagingVersion() != 
MessagingService.current_version
+|| !DatabaseDescriptor.getCommitLogSegmentRecyclingEnabled())
 {
 // (don't decrease managed size, since this was never a "live" 
segment)
 logger.debug("(Unopened) segment {} is no longer n

[1/2] cassandra git commit: Fix bugs in commit log archiving startup behavior

2015-12-18 Thread aleksey
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.2 bcd68b546 -> c26b39716


Fix bugs in commit log archiving startup behavior

patch by Ariel Weisberg; reviewed by Branimir Lambov for CASSANDRA-10593


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/3740f815
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/3740f815
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/3740f815

Branch: refs/heads/cassandra-2.2
Commit: 3740f815c21254bd625ad1cbe8d47aa657727a83
Parents: 124f1bd
Author: Ariel Weisberg 
Authored: Thu Dec 3 14:37:26 2015 -0500
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:37:05 2015 +

--
 CHANGES.txt|  1 +
 .../cassandra/db/commitlog/CommitLogArchiver.java  | 17 ++---
 .../db/commitlog/CommitLogSegmentManager.java  |  3 ++-
 3 files changed, 13 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/3740f815/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 90f1bca..581784e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 2.1.13
+ * Fix bugs in commit log archiving startup behavior (CASSANDRA-10593)
  * (cqlsh) further optimise COPY FROM (CASSANDRA-9302)
  * Allow CREATE TABLE WITH ID (CASSANDRA-9179)
  * Make Stress compiles within eclipse (CASSANDRA-10807)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/3740f815/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
--
diff --git a/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java 
b/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
index 91f3179..8d9a6b3 100644
--- a/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
+++ b/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
@@ -1,5 +1,5 @@
 /*
- * 
+ *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -7,16 +7,16 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  */
 package org.apache.cassandra.db.commitlog;
 
@@ -173,10 +173,13 @@ public class CommitLogArchiver
 }
 catch (ExecutionException e)
 {
-if (e.getCause() instanceof IOException)
+if (e.getCause() instanceof RuntimeException)
 {
-logger.error("Looks like the archiving of file {} failed 
earlier, cassandra is going to ignore this segment for now.", name);
-return false;
+if (e.getCause().getCause() instanceof IOException)
+{
+logger.error("Looks like the archiving of file {} failed 
earlier, cassandra is going to ignore this segment for now.", name, 
e.getCause().getCause());
+return false;
+}
 }
 throw new RuntimeException(e);
 }

http://git-wip-us.apache.org/repos/asf/cassandra/blob/3740f815/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
--
diff --git 
a/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java 
b/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
index 9310d67..0ea54ab 100644
--- a/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
+++ b/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
@@ -383,7 +383,8 @@ public class CommitLogSegmentManager
 void recycleSegment(final File file)
 {
 if (isCapExceeded()
-|| 
CommitLogDescriptor.fromFileName(file.getName()).getMessagingVersion() != 
MessagingService.current_version)
+|| 
CommitLogDescriptor.fromFileName(file.getName()).getMessagingVersion() != 
MessagingService.current_version
+|| !DatabaseDescriptor.getCommitLogSegmentRecyclingEnabled())
 {
 // (don't decrease managed size, since this was never a "live" 
segment)
 logger.debug("(Unopened) segment {} is no longer n

[2/2] cassandra git commit: Merge branch 'cassandra-2.1' into cassandra-2.2

2015-12-18 Thread aleksey
Merge branch 'cassandra-2.1' into cassandra-2.2


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c26b3971
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c26b3971
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c26b3971

Branch: refs/heads/cassandra-2.2
Commit: c26b3971622f55589f4f080516c9e01311b4e7b1
Parents: bcd68b5 3740f81
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 23:38:40 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:38:40 2015 +

--
 CHANGES.txt | 1 +
 .../apache/cassandra/db/commitlog/CommitLogArchiver.java| 9 ++---
 2 files changed, 7 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/c26b3971/CHANGES.txt
--
diff --cc CHANGES.txt
index 88ef42e,581784e..1ff1a5c
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -1,12 -1,5 +1,13 @@@
 -2.1.13
 +2.2.5
 + * (cqlsh) show correct column names for empty result sets (CASSANDRA-9813)
 + * Add new types to Stress (CASSANDRA-9556)
 + * Add property to allow listening on broadcast interface (CASSANDRA-9748)
 + * Fix regression in split size on CqlInputFormat (CASSANDRA-10835)
 + * Better handling of SSL connection errors inter-node (CASSANDRA-10816)
 + * Disable reloading of GossipingPropertyFileSnitch (CASSANDRA-9474)
 + * Verify tables in pseudo-system keyspaces at startup (CASSANDRA-10761)
 +Merged from 2.1:
+  * Fix bugs in commit log archiving startup behavior (CASSANDRA-10593)
   * (cqlsh) further optimise COPY FROM (CASSANDRA-9302)
   * Allow CREATE TABLE WITH ID (CASSANDRA-9179)
   * Make Stress compiles within eclipse (CASSANDRA-10807)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/c26b3971/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
--



cassandra git commit: Fix bugs in commit log archiving startup behavior

2015-12-18 Thread aleksey
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 124f1bd26 -> 3740f815c


Fix bugs in commit log archiving startup behavior

patch by Ariel Weisberg; reviewed by Branimir Lambov for CASSANDRA-10593


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/3740f815
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/3740f815
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/3740f815

Branch: refs/heads/cassandra-2.1
Commit: 3740f815c21254bd625ad1cbe8d47aa657727a83
Parents: 124f1bd
Author: Ariel Weisberg 
Authored: Thu Dec 3 14:37:26 2015 -0500
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:37:05 2015 +

--
 CHANGES.txt|  1 +
 .../cassandra/db/commitlog/CommitLogArchiver.java  | 17 ++---
 .../db/commitlog/CommitLogSegmentManager.java  |  3 ++-
 3 files changed, 13 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/3740f815/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 90f1bca..581784e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 2.1.13
+ * Fix bugs in commit log archiving startup behavior (CASSANDRA-10593)
  * (cqlsh) further optimise COPY FROM (CASSANDRA-9302)
  * Allow CREATE TABLE WITH ID (CASSANDRA-9179)
  * Make Stress compiles within eclipse (CASSANDRA-10807)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/3740f815/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
--
diff --git a/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java 
b/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
index 91f3179..8d9a6b3 100644
--- a/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
+++ b/src/java/org/apache/cassandra/db/commitlog/CommitLogArchiver.java
@@ -1,5 +1,5 @@
 /*
- * 
+ *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -7,16 +7,16 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  */
 package org.apache.cassandra.db.commitlog;
 
@@ -173,10 +173,13 @@ public class CommitLogArchiver
 }
 catch (ExecutionException e)
 {
-if (e.getCause() instanceof IOException)
+if (e.getCause() instanceof RuntimeException)
 {
-logger.error("Looks like the archiving of file {} failed 
earlier, cassandra is going to ignore this segment for now.", name);
-return false;
+if (e.getCause().getCause() instanceof IOException)
+{
+logger.error("Looks like the archiving of file {} failed 
earlier, cassandra is going to ignore this segment for now.", name, 
e.getCause().getCause());
+return false;
+}
 }
 throw new RuntimeException(e);
 }

http://git-wip-us.apache.org/repos/asf/cassandra/blob/3740f815/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
--
diff --git 
a/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java 
b/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
index 9310d67..0ea54ab 100644
--- a/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
+++ b/src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentManager.java
@@ -383,7 +383,8 @@ public class CommitLogSegmentManager
 void recycleSegment(final File file)
 {
 if (isCapExceeded()
-|| 
CommitLogDescriptor.fromFileName(file.getName()).getMessagingVersion() != 
MessagingService.current_version)
+|| 
CommitLogDescriptor.fromFileName(file.getName()).getMessagingVersion() != 
MessagingService.current_version
+|| !DatabaseDescriptor.getCommitLogSegmentRecyclingEnabled())
 {
 // (don't decrease managed size, since this was never a "live" 
segment)
 logger.debug("(Unopened) segment {} is no longer n

[jira] [Commented] (CASSANDRA-9813) cqlsh column header can be incorrect when no rows are returned

2015-12-18 Thread Aleksey Yeschenko (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064964#comment-15064964
 ] 

Aleksey Yeschenko commented on CASSANDRA-9813:
--

Committed as 
[bcd68b546b7e449afd5f4233e01a45e0e4609307|https://github.com/apache/cassandra/commit/bcd68b546b7e449afd5f4233e01a45e0e4609307]
 to 2.2, merged with 3.0 and trunk. Thanks.

> cqlsh column header can be incorrect when no rows are returned
> --
>
> Key: CASSANDRA-9813
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9813
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Aleksey Yeschenko
>Assignee: Adam Holmberg
>  Labels: cqlsh
> Fix For: 2.2.x, 3.0.x, 3.x
>
> Attachments: 9813-2.1.txt, Test-for-9813.txt
>
>
> Upon migration, we internally create a pair of surrogate clustering/regular 
> columns for compact static tables. These shouldn't be exposed to the user.
> That is, for the table
> {code}
> CREATE TABLE bar (k int, c int, PRIMARY KEY (k)) WITH COMPACT STORAGE;
> {code}
> {{SELECT * FROM bar}} should not be returning this result set:
> {code}
> cqlsh:test> select * from bar;
>  c | column1 | k | value
> ---+-+---+---
> (0 rows)
> {code}
> Should only contain the defined {{c}} and {{k}} columns.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


cassandra git commit: (cqlsh) show correct column names for empty result sets

2015-12-18 Thread aleksey
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.2 9dd2b5ea0 -> bcd68b546


(cqlsh) show correct column names for empty result sets

patch by Adam Holmberg; reviewed by Ariel Weisberg for CASSANDRA-9813


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/bcd68b54
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/bcd68b54
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/bcd68b54

Branch: refs/heads/cassandra-2.2
Commit: bcd68b546b7e449afd5f4233e01a45e0e4609307
Parents: 9dd2b5e
Author: Adam Holmberg 
Authored: Fri Dec 11 16:18:49 2015 -0600
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:26:53 2015 +

--
 CHANGES.txt  |  1 +
 bin/cqlsh.py | 21 +++--
 2 files changed, 8 insertions(+), 14 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/bcd68b54/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 1480960..88ef42e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 2.2.5
+ * (cqlsh) show correct column names for empty result sets (CASSANDRA-9813)
  * Add new types to Stress (CASSANDRA-9556)
  * Add property to allow listening on broadcast interface (CASSANDRA-9748)
  * Fix regression in split size on CqlInputFormat (CASSANDRA-10835)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/bcd68b54/bin/cqlsh.py
--
diff --git a/bin/cqlsh.py b/bin/cqlsh.py
index 1119289..427fc29 100644
--- a/bin/cqlsh.py
+++ b/bin/cqlsh.py
@@ -1242,7 +1242,7 @@ class Shell(cmd.Cmd):
 elif result:
 # CAS INSERT/UPDATE
 self.writeresult("")
-self.print_static_result(list(result), 
self.parse_for_table_meta(statement.query_string))
+self.print_static_result(result.column_names, list(result), 
self.parse_for_table_meta(statement.query_string))
 self.flush_output()
 return True, future
 
@@ -1256,7 +1256,7 @@ class Shell(cmd.Cmd):
 page = result.current_rows
 if page:
 num_rows += len(page)
-self.print_static_result(page, table_meta)
+self.print_static_result(result.column_names, page, 
table_meta)
 if result.has_more_pages:
 raw_input("---MORE---")
 result.fetch_next_page()
@@ -1265,7 +1265,7 @@ class Shell(cmd.Cmd):
 else:
 rows = list(result)
 num_rows = len(rows)
-self.print_static_result(rows, table_meta)
+self.print_static_result(result.column_names, rows, table_meta)
 self.writeresult("(%d rows)" % num_rows)
 
 if self.decoding_errors:
@@ -1275,18 +1275,11 @@ class Shell(cmd.Cmd):
 self.writeresult('%d more decoding errors suppressed.'
  % (len(self.decoding_errors) - 2), color=RED)
 
-def print_static_result(self, rows, table_meta):
-if not rows:
-if not table_meta:
-return
-# print header only
-colnames = table_meta.columns.keys()  # full header
-formatted_names = [self.myformat_colname(name, table_meta) for 
name in colnames]
-self.print_formatted_result(formatted_names, None)
+def print_static_result(self, column_names, rows, table_meta):
+if not column_names and not table_meta:
 return
-
-colnames = rows[0].keys()
-formatted_names = [self.myformat_colname(name, table_meta) for name in 
colnames]
+column_names = column_names or table_meta.columns.keys()
+formatted_names = [self.myformat_colname(name, table_meta) for name in 
column_names]
 formatted_values = [map(self.myformat_value, row.values()) for row in 
rows]
 
 if self.expand_enabled:



[2/3] cassandra git commit: Merge branch 'cassandra-2.2' into cassandra-3.0

2015-12-18 Thread aleksey
Merge branch 'cassandra-2.2' into cassandra-3.0


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/2800bf10
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/2800bf10
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/2800bf10

Branch: refs/heads/trunk
Commit: 2800bf1082e773daf0af29516b61c711acda626b
Parents: fa18880 bcd68b5
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 23:30:16 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:30:16 2015 +

--
 CHANGES.txt  |  1 +
 bin/cqlsh.py | 21 +++--
 2 files changed, 8 insertions(+), 14 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/2800bf10/CHANGES.txt
--
diff --cc CHANGES.txt
index 199e374,88ef42e..b4419fa
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -1,9 -1,5 +1,10 @@@
 -2.2.5
 +3.0.3
 + * Add back support for 3rd party auth providers to bulk loader 
(CASSANDRA-10873)
 + * Eliminate the dependency on jgrapht for UDT resolution (CASSANDRA-10653)
 + * (Hadoop) Close Clusters and Sessions in Hadoop Input/Output classes 
(CASSANDRA-1837)
 + * Fix sstableloader not working with upper case keyspace name 
(CASSANDRA-10806)
 +Merged from 2.2:
+  * (cqlsh) show correct column names for empty result sets (CASSANDRA-9813)
   * Add new types to Stress (CASSANDRA-9556)
   * Add property to allow listening on broadcast interface (CASSANDRA-9748)
   * Fix regression in split size on CqlInputFormat (CASSANDRA-10835)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/2800bf10/bin/cqlsh.py
--



[3/3] cassandra git commit: Merge branch 'cassandra-3.0' into trunk

2015-12-18 Thread aleksey
Merge branch 'cassandra-3.0' into trunk


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/01b3508e
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/01b3508e
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/01b3508e

Branch: refs/heads/trunk
Commit: 01b3508e0f0025bb859d96fb163ff457d3d94662
Parents: 99880d2 2800bf1
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 23:30:39 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:30:39 2015 +

--
 CHANGES.txt  |  1 +
 bin/cqlsh.py | 21 +++--
 2 files changed, 8 insertions(+), 14 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/01b3508e/CHANGES.txt
--
diff --cc CHANGES.txt
index 47863e9,b4419fa..0df24d5
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -27,8 -4,13 +27,9 @@@ Merged from 3.0
   * (Hadoop) Close Clusters and Sessions in Hadoop Input/Output classes 
(CASSANDRA-1837)
   * Fix sstableloader not working with upper case keyspace name 
(CASSANDRA-10806)
  Merged from 2.2:
+  * (cqlsh) show correct column names for empty result sets (CASSANDRA-9813)
   * Add new types to Stress (CASSANDRA-9556)
   * Add property to allow listening on broadcast interface (CASSANDRA-9748)
 - * Fix regression in split size on CqlInputFormat (CASSANDRA-10835)
 - * Better handling of SSL connection errors inter-node (CASSANDRA-10816)
 - * Disable reloading of GossipingPropertyFileSnitch (CASSANDRA-9474)
 - * Verify tables in pseudo-system keyspaces at startup (CASSANDRA-10761)
  Merged from 2.1:
   * (cqlsh) further optimise COPY FROM (CASSANDRA-9302)
   * Allow CREATE TABLE WITH ID (CASSANDRA-9179)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/01b3508e/bin/cqlsh.py
--



[2/2] cassandra git commit: Merge branch 'cassandra-2.2' into cassandra-3.0

2015-12-18 Thread aleksey
Merge branch 'cassandra-2.2' into cassandra-3.0


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/2800bf10
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/2800bf10
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/2800bf10

Branch: refs/heads/cassandra-3.0
Commit: 2800bf1082e773daf0af29516b61c711acda626b
Parents: fa18880 bcd68b5
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 23:30:16 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:30:16 2015 +

--
 CHANGES.txt  |  1 +
 bin/cqlsh.py | 21 +++--
 2 files changed, 8 insertions(+), 14 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/2800bf10/CHANGES.txt
--
diff --cc CHANGES.txt
index 199e374,88ef42e..b4419fa
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -1,9 -1,5 +1,10 @@@
 -2.2.5
 +3.0.3
 + * Add back support for 3rd party auth providers to bulk loader 
(CASSANDRA-10873)
 + * Eliminate the dependency on jgrapht for UDT resolution (CASSANDRA-10653)
 + * (Hadoop) Close Clusters and Sessions in Hadoop Input/Output classes 
(CASSANDRA-1837)
 + * Fix sstableloader not working with upper case keyspace name 
(CASSANDRA-10806)
 +Merged from 2.2:
+  * (cqlsh) show correct column names for empty result sets (CASSANDRA-9813)
   * Add new types to Stress (CASSANDRA-9556)
   * Add property to allow listening on broadcast interface (CASSANDRA-9748)
   * Fix regression in split size on CqlInputFormat (CASSANDRA-10835)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/2800bf10/bin/cqlsh.py
--



[1/3] cassandra git commit: (cqlsh) show correct column names for empty result sets

2015-12-18 Thread aleksey
Repository: cassandra
Updated Branches:
  refs/heads/trunk 99880d22d -> 01b3508e0


(cqlsh) show correct column names for empty result sets

patch by Adam Holmberg; reviewed by Ariel Weisberg for CASSANDRA-9813


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/bcd68b54
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/bcd68b54
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/bcd68b54

Branch: refs/heads/trunk
Commit: bcd68b546b7e449afd5f4233e01a45e0e4609307
Parents: 9dd2b5e
Author: Adam Holmberg 
Authored: Fri Dec 11 16:18:49 2015 -0600
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:26:53 2015 +

--
 CHANGES.txt  |  1 +
 bin/cqlsh.py | 21 +++--
 2 files changed, 8 insertions(+), 14 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/bcd68b54/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 1480960..88ef42e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 2.2.5
+ * (cqlsh) show correct column names for empty result sets (CASSANDRA-9813)
  * Add new types to Stress (CASSANDRA-9556)
  * Add property to allow listening on broadcast interface (CASSANDRA-9748)
  * Fix regression in split size on CqlInputFormat (CASSANDRA-10835)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/bcd68b54/bin/cqlsh.py
--
diff --git a/bin/cqlsh.py b/bin/cqlsh.py
index 1119289..427fc29 100644
--- a/bin/cqlsh.py
+++ b/bin/cqlsh.py
@@ -1242,7 +1242,7 @@ class Shell(cmd.Cmd):
 elif result:
 # CAS INSERT/UPDATE
 self.writeresult("")
-self.print_static_result(list(result), 
self.parse_for_table_meta(statement.query_string))
+self.print_static_result(result.column_names, list(result), 
self.parse_for_table_meta(statement.query_string))
 self.flush_output()
 return True, future
 
@@ -1256,7 +1256,7 @@ class Shell(cmd.Cmd):
 page = result.current_rows
 if page:
 num_rows += len(page)
-self.print_static_result(page, table_meta)
+self.print_static_result(result.column_names, page, 
table_meta)
 if result.has_more_pages:
 raw_input("---MORE---")
 result.fetch_next_page()
@@ -1265,7 +1265,7 @@ class Shell(cmd.Cmd):
 else:
 rows = list(result)
 num_rows = len(rows)
-self.print_static_result(rows, table_meta)
+self.print_static_result(result.column_names, rows, table_meta)
 self.writeresult("(%d rows)" % num_rows)
 
 if self.decoding_errors:
@@ -1275,18 +1275,11 @@ class Shell(cmd.Cmd):
 self.writeresult('%d more decoding errors suppressed.'
  % (len(self.decoding_errors) - 2), color=RED)
 
-def print_static_result(self, rows, table_meta):
-if not rows:
-if not table_meta:
-return
-# print header only
-colnames = table_meta.columns.keys()  # full header
-formatted_names = [self.myformat_colname(name, table_meta) for 
name in colnames]
-self.print_formatted_result(formatted_names, None)
+def print_static_result(self, column_names, rows, table_meta):
+if not column_names and not table_meta:
 return
-
-colnames = rows[0].keys()
-formatted_names = [self.myformat_colname(name, table_meta) for name in 
colnames]
+column_names = column_names or table_meta.columns.keys()
+formatted_names = [self.myformat_colname(name, table_meta) for name in 
column_names]
 formatted_values = [map(self.myformat_value, row.values()) for row in 
rows]
 
 if self.expand_enabled:



[1/2] cassandra git commit: (cqlsh) show correct column names for empty result sets

2015-12-18 Thread aleksey
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.0 fa18880e7 -> 2800bf108


(cqlsh) show correct column names for empty result sets

patch by Adam Holmberg; reviewed by Ariel Weisberg for CASSANDRA-9813


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/bcd68b54
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/bcd68b54
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/bcd68b54

Branch: refs/heads/cassandra-3.0
Commit: bcd68b546b7e449afd5f4233e01a45e0e4609307
Parents: 9dd2b5e
Author: Adam Holmberg 
Authored: Fri Dec 11 16:18:49 2015 -0600
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:26:53 2015 +

--
 CHANGES.txt  |  1 +
 bin/cqlsh.py | 21 +++--
 2 files changed, 8 insertions(+), 14 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/bcd68b54/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 1480960..88ef42e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 2.2.5
+ * (cqlsh) show correct column names for empty result sets (CASSANDRA-9813)
  * Add new types to Stress (CASSANDRA-9556)
  * Add property to allow listening on broadcast interface (CASSANDRA-9748)
  * Fix regression in split size on CqlInputFormat (CASSANDRA-10835)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/bcd68b54/bin/cqlsh.py
--
diff --git a/bin/cqlsh.py b/bin/cqlsh.py
index 1119289..427fc29 100644
--- a/bin/cqlsh.py
+++ b/bin/cqlsh.py
@@ -1242,7 +1242,7 @@ class Shell(cmd.Cmd):
 elif result:
 # CAS INSERT/UPDATE
 self.writeresult("")
-self.print_static_result(list(result), 
self.parse_for_table_meta(statement.query_string))
+self.print_static_result(result.column_names, list(result), 
self.parse_for_table_meta(statement.query_string))
 self.flush_output()
 return True, future
 
@@ -1256,7 +1256,7 @@ class Shell(cmd.Cmd):
 page = result.current_rows
 if page:
 num_rows += len(page)
-self.print_static_result(page, table_meta)
+self.print_static_result(result.column_names, page, 
table_meta)
 if result.has_more_pages:
 raw_input("---MORE---")
 result.fetch_next_page()
@@ -1265,7 +1265,7 @@ class Shell(cmd.Cmd):
 else:
 rows = list(result)
 num_rows = len(rows)
-self.print_static_result(rows, table_meta)
+self.print_static_result(result.column_names, rows, table_meta)
 self.writeresult("(%d rows)" % num_rows)
 
 if self.decoding_errors:
@@ -1275,18 +1275,11 @@ class Shell(cmd.Cmd):
 self.writeresult('%d more decoding errors suppressed.'
  % (len(self.decoding_errors) - 2), color=RED)
 
-def print_static_result(self, rows, table_meta):
-if not rows:
-if not table_meta:
-return
-# print header only
-colnames = table_meta.columns.keys()  # full header
-formatted_names = [self.myformat_colname(name, table_meta) for 
name in colnames]
-self.print_formatted_result(formatted_names, None)
+def print_static_result(self, column_names, rows, table_meta):
+if not column_names and not table_meta:
 return
-
-colnames = rows[0].keys()
-formatted_names = [self.myformat_colname(name, table_meta) for name in 
colnames]
+column_names = column_names or table_meta.columns.keys()
+formatted_names = [self.myformat_colname(name, table_meta) for name in 
column_names]
 formatted_values = [map(self.myformat_value, row.values()) for row in 
rows]
 
 if self.expand_enabled:



[jira] [Commented] (CASSANDRA-9494) Need to set TTL with COPY command

2015-12-18 Thread Aleksey Yeschenko (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064948#comment-15064948
 ] 

Aleksey Yeschenko commented on CASSANDRA-9494:
--

Committed to trunk only as 
[99880d22de0023081a6d5829bef991eb96f7c342|https://github.com/apache/cassandra/commit/99880d22de0023081a6d5829bef991eb96f7c342].
 Time for us to get stricter with 'feature only go into 3.x' mode.

> Need to set TTL with COPY command
> -
>
> Key: CASSANDRA-9494
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9494
> Project: Cassandra
>  Issue Type: Sub-task
>  Components: CQL
>Reporter: Ed Chen
>Assignee: Stefania
>  Labels: cqlsh
> Fix For: 3.2
>
>
> I can import a chunk of data into Cassandra table with COPY command like:
> COPY my_table (name, address) FROM my_file.csv WITH option='value' ... ;
> But I am not able to specify a finite TTL in COPY command with "USING TTL 
> 3600", for example. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


cassandra git commit: (cqlsh) allow setting TTL with COPY

2015-12-18 Thread aleksey
Repository: cassandra
Updated Branches:
  refs/heads/trunk 622d1f7c0 -> 99880d22d


(cqlsh) allow setting TTL with COPY

patch by Stefania Alborghetti; reviewed by Adam Holmberg for
CASSANDRA-9494


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/99880d22
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/99880d22
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/99880d22

Branch: refs/heads/trunk
Commit: 99880d22de0023081a6d5829bef991eb96f7c342
Parents: 622d1f7
Author: Stefania Alborghetti 
Authored: Thu Nov 19 14:51:40 2015 +0800
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 23:14:15 2015 +

--
 CHANGES.txt| 1 +
 bin/cqlsh.py   | 3 ++-
 pylib/cqlshlib/copyutil.py | 5 +
 3 files changed, 8 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/99880d22/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 5cbbb62..47863e9 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.2
+ * (cqlsh) allow setting TTL with COPY (CASSANDRA-9494)
  * Fix EstimatedHistogram creation in nodetool tablehistograms 
(CASSANDRA-10859)
  * Establish bootstrap stream sessions sequentially (CASSANDRA-6992)
  * Sort compactionhistory output by timestamp (CASSANDRA-10464)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/99880d22/bin/cqlsh.py
--
diff --git a/bin/cqlsh.py b/bin/cqlsh.py
index 0f6b39c..e48857d 100644
--- a/bin/cqlsh.py
+++ b/bin/cqlsh.py
@@ -460,7 +460,7 @@ def complete_copy_column_names(ctxt, cqlsh):
 
 COPY_COMMON_OPTIONS = ['DELIMITER', 'QUOTE', 'ESCAPE', 'HEADER', 'NULL',
'MAXATTEMPTS', 'REPORTFREQUENCY']
-COPY_FROM_OPTIONS = ['CHUNKSIZE', 'INGESTRATE', 'MAXBATCHSIZE', 'MINBATCHSIZE']
+COPY_FROM_OPTIONS = ['CHUNKSIZE', 'INGESTRATE', 'MAXBATCHSIZE', 
'MINBATCHSIZE', 'TTL']
 COPY_TO_OPTIONS = ['ENCODING', 'TIMEFORMAT', 'PAGESIZE', 'PAGETIMEOUT', 
'MAXREQUESTS']
 
 
@@ -1812,6 +1812,7 @@ class Shell(cmd.Cmd):
   MAXBATCHSIZE=20 - the maximum size of an import batch (COPY 
FROM)
   MINBATCHSIZE=2  - the minimum size of an import batch (COPY 
FROM)
   REPORTFREQUENCY=0.25- the frequency with which we display status 
updates in seconds
+  TTL=3600- the time to live in seconds, by default 
data will not expire (COPY FROM)
 
 When entering CSV data on STDIN, you can use the sequence "\."
 on a line by itself to end the data input.

http://git-wip-us.apache.org/repos/asf/cassandra/blob/99880d22/pylib/cqlshlib/copyutil.py
--
diff --git a/pylib/cqlshlib/copyutil.py b/pylib/cqlshlib/copyutil.py
index a117ec3..d7d7790 100644
--- a/pylib/cqlshlib/copyutil.py
+++ b/pylib/cqlshlib/copyutil.py
@@ -83,6 +83,7 @@ def parse_options(shell, opts):
 csv_options['maxbatchsize'] = int(opts.pop('maxbatchsize', 20))
 csv_options['minbatchsize'] = int(opts.pop('minbatchsize', 2))
 csv_options['reportfrequency'] = float(opts.pop('reportfrequency', 0.25))
+csv_options['ttl'] = int(opts.pop('ttl', -1))
 
 return csv_options, dialect_options, opts
 
@@ -1063,6 +1064,7 @@ class ImportProcess(ChildProcess):
 self.max_attempts = csv_options['maxattempts']
 self.min_batch_size = csv_options['minbatchsize']
 self.max_batch_size = csv_options['maxbatchsize']
+self.ttl = csv_options['ttl']
 self._session = None
 
 @property
@@ -1140,6 +1142,9 @@ class ImportProcess(ChildProcess):
 protect_name(self.cf),
 ', 
'.join(protect_names(self.columns),),
 ', '.join(['?' for _ 
in self.columns]))
+if self.ttl >= 0:
+query += 'USING TTL %s' % (self.ttl,)
+
 query_statement = self.session.prepare(query)
 conv = ImportConversion(self, table_meta, query_statement)
 



[2/3] cassandra git commit: Add back support for 3rd party auth providers to bulk loader

2015-12-18 Thread yukim
Add back support for 3rd party auth providers to bulk loader

patch by Mike Adamson; reviewed by yukim for CASSANDRA-10873


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/fa18880e
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/fa18880e
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/fa18880e

Branch: refs/heads/trunk
Commit: fa18880e73f7f3bdbb1075c0baa54a7df3e667d0
Parents: 2e09583
Author: Mike Adamson 
Authored: Wed Dec 16 10:37:47 2015 +
Committer: Yuki Morishita 
Committed: Fri Dec 18 17:09:28 2015 -0600

--
 CHANGES.txt |  1 +
 .../org/apache/cassandra/tools/BulkLoader.java  | 79 ++--
 .../utils/NativeSSTableLoaderClient.java| 16 ++--
 3 files changed, 84 insertions(+), 12 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/fa18880e/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index e6ab5dd..199e374 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.0.3
+ * Add back support for 3rd party auth providers to bulk loader 
(CASSANDRA-10873)
  * Eliminate the dependency on jgrapht for UDT resolution (CASSANDRA-10653)
  * (Hadoop) Close Clusters and Sessions in Hadoop Input/Output classes 
(CASSANDRA-1837)
  * Fix sstableloader not working with upper case keyspace name 
(CASSANDRA-10806)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/fa18880e/src/java/org/apache/cassandra/tools/BulkLoader.java
--
diff --git a/src/java/org/apache/cassandra/tools/BulkLoader.java 
b/src/java/org/apache/cassandra/tools/BulkLoader.java
index 73194a1..2b94a68 100644
--- a/src/java/org/apache/cassandra/tools/BulkLoader.java
+++ b/src/java/org/apache/cassandra/tools/BulkLoader.java
@@ -19,6 +19,8 @@ package org.apache.cassandra.tools;
 
 import java.io.File;
 import java.io.IOException;
+import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
 import java.net.InetAddress;
 import java.net.MalformedURLException;
 import java.net.UnknownHostException;
@@ -28,6 +30,8 @@ import com.google.common.collect.HashMultimap;
 import com.google.common.collect.Multimap;
 import org.apache.commons.cli.*;
 
+import com.datastax.driver.core.AuthProvider;
+import com.datastax.driver.core.PlainTextAuthProvider;
 import com.datastax.driver.core.SSLOptions;
 import javax.net.ssl.SSLContext;
 import org.apache.cassandra.config.*;
@@ -50,6 +54,7 @@ public class BulkLoader
 private static final String NATIVE_PORT_OPTION = "port";
 private static final String USER_OPTION = "username";
 private static final String PASSWD_OPTION = "password";
+private static final String AUTH_PROVIDER_OPTION = "auth-provider";
 private static final String THROTTLE_MBITS = "throttle";
 
 /* client encryption options */
@@ -67,15 +72,14 @@ public class BulkLoader
 public static void main(String args[])
 {
 Config.setClientMode(true);
-LoaderOptions options = LoaderOptions.parseArgs(args);
+LoaderOptions options = 
LoaderOptions.parseArgs(args).validateArguments();
 OutputHandler handler = new 
OutputHandler.SystemOutput(options.verbose, options.debug);
 SSTableLoader loader = new SSTableLoader(
 options.directory,
 new ExternalClient(
 options.hosts,
 options.nativePort,
-options.user,
-options.passwd,
+options.authProvider,
 options.storagePort,
 options.sslStoragePort,
 options.serverEncOptions,
@@ -277,14 +281,13 @@ public class BulkLoader
 
 public ExternalClient(Set hosts,
   int port,
-  String user,
-  String passwd,
+  AuthProvider authProvider,
   int storagePort,
   int sslStoragePort,
   EncryptionOptions.ServerEncryptionOptions 
serverEncryptionOptions,
   SSLOptions sslOptions)
 {
-super(hosts, port, user, passwd, sslOptions);
+super(hosts, port, authProvider, sslOptions);
 this.storagePort = storagePort;
 this.sslStoragePort = sslStoragePort;
 this.serverEncOptions = serverEncryptionOptions;
@@ -307,6 +310,8 @@ public class BulkLoader
 public int nativePort = 9042;
 public String user;
 public String passwd;
+public String authProvide

[1/3] cassandra git commit: Add back support for 3rd party auth providers to bulk loader

2015-12-18 Thread yukim
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.0 2e095833d -> fa18880e7
  refs/heads/trunk ff5b7099a -> 622d1f7c0


Add back support for 3rd party auth providers to bulk loader

patch by Mike Adamson; reviewed by yukim for CASSANDRA-10873


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/fa18880e
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/fa18880e
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/fa18880e

Branch: refs/heads/cassandra-3.0
Commit: fa18880e73f7f3bdbb1075c0baa54a7df3e667d0
Parents: 2e09583
Author: Mike Adamson 
Authored: Wed Dec 16 10:37:47 2015 +
Committer: Yuki Morishita 
Committed: Fri Dec 18 17:09:28 2015 -0600

--
 CHANGES.txt |  1 +
 .../org/apache/cassandra/tools/BulkLoader.java  | 79 ++--
 .../utils/NativeSSTableLoaderClient.java| 16 ++--
 3 files changed, 84 insertions(+), 12 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/fa18880e/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index e6ab5dd..199e374 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.0.3
+ * Add back support for 3rd party auth providers to bulk loader 
(CASSANDRA-10873)
  * Eliminate the dependency on jgrapht for UDT resolution (CASSANDRA-10653)
  * (Hadoop) Close Clusters and Sessions in Hadoop Input/Output classes 
(CASSANDRA-1837)
  * Fix sstableloader not working with upper case keyspace name 
(CASSANDRA-10806)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/fa18880e/src/java/org/apache/cassandra/tools/BulkLoader.java
--
diff --git a/src/java/org/apache/cassandra/tools/BulkLoader.java 
b/src/java/org/apache/cassandra/tools/BulkLoader.java
index 73194a1..2b94a68 100644
--- a/src/java/org/apache/cassandra/tools/BulkLoader.java
+++ b/src/java/org/apache/cassandra/tools/BulkLoader.java
@@ -19,6 +19,8 @@ package org.apache.cassandra.tools;
 
 import java.io.File;
 import java.io.IOException;
+import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
 import java.net.InetAddress;
 import java.net.MalformedURLException;
 import java.net.UnknownHostException;
@@ -28,6 +30,8 @@ import com.google.common.collect.HashMultimap;
 import com.google.common.collect.Multimap;
 import org.apache.commons.cli.*;
 
+import com.datastax.driver.core.AuthProvider;
+import com.datastax.driver.core.PlainTextAuthProvider;
 import com.datastax.driver.core.SSLOptions;
 import javax.net.ssl.SSLContext;
 import org.apache.cassandra.config.*;
@@ -50,6 +54,7 @@ public class BulkLoader
 private static final String NATIVE_PORT_OPTION = "port";
 private static final String USER_OPTION = "username";
 private static final String PASSWD_OPTION = "password";
+private static final String AUTH_PROVIDER_OPTION = "auth-provider";
 private static final String THROTTLE_MBITS = "throttle";
 
 /* client encryption options */
@@ -67,15 +72,14 @@ public class BulkLoader
 public static void main(String args[])
 {
 Config.setClientMode(true);
-LoaderOptions options = LoaderOptions.parseArgs(args);
+LoaderOptions options = 
LoaderOptions.parseArgs(args).validateArguments();
 OutputHandler handler = new 
OutputHandler.SystemOutput(options.verbose, options.debug);
 SSTableLoader loader = new SSTableLoader(
 options.directory,
 new ExternalClient(
 options.hosts,
 options.nativePort,
-options.user,
-options.passwd,
+options.authProvider,
 options.storagePort,
 options.sslStoragePort,
 options.serverEncOptions,
@@ -277,14 +281,13 @@ public class BulkLoader
 
 public ExternalClient(Set hosts,
   int port,
-  String user,
-  String passwd,
+  AuthProvider authProvider,
   int storagePort,
   int sslStoragePort,
   EncryptionOptions.ServerEncryptionOptions 
serverEncryptionOptions,
   SSLOptions sslOptions)
 {
-super(hosts, port, user, passwd, sslOptions);
+super(hosts, port, authProvider, sslOptions);
 this.storagePort = storagePort;
 this.sslStoragePort = sslStoragePort;
 this.serverEncOptions = serverEncryptionOptions;
@@ -307,6 +310,8 @@ public class Bu

[3/3] cassandra git commit: Merge branch 'cassandra-3.0' into trunk

2015-12-18 Thread yukim
Merge branch 'cassandra-3.0' into trunk


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/622d1f7c
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/622d1f7c
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/622d1f7c

Branch: refs/heads/trunk
Commit: 622d1f7c0a37c679da2d703fc0bc9ac8bf5ce68d
Parents: ff5b709 fa18880
Author: Yuki Morishita 
Authored: Fri Dec 18 17:12:25 2015 -0600
Committer: Yuki Morishita 
Committed: Fri Dec 18 17:12:25 2015 -0600

--
 CHANGES.txt |  1 +
 .../org/apache/cassandra/tools/BulkLoader.java  | 79 ++--
 .../utils/NativeSSTableLoaderClient.java| 16 ++--
 3 files changed, 84 insertions(+), 12 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/622d1f7c/CHANGES.txt
--
diff --cc CHANGES.txt
index e8fbc0d,199e374..5cbbb62
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -1,26 -1,5 +1,27 @@@
 -3.0.3
 +3.2
 + * Fix EstimatedHistogram creation in nodetool tablehistograms 
(CASSANDRA-10859)
 + * Establish bootstrap stream sessions sequentially (CASSANDRA-6992)
 + * Sort compactionhistory output by timestamp (CASSANDRA-10464)
 + * More efficient BTree removal (CASSANDRA-9991)
 + * Make tablehistograms accept the same syntax as tablestats (CASSANDRA-10149)
 + * Group pending compactions based on table (CASSANDRA-10718)
 + * Add compressor name in sstablemetadata output (CASSANDRA-9879)
 + * Fix type casting for counter columns (CASSANDRA-10824)
 + * Prevent running Cassandra as root (CASSANDRA-8142)
 + * bound maximum in-flight commit log replay mutation bytes to 64 megabytes 
(CASSANDRA-8639)
 + * Normalize all scripts (CASSANDRA-10679)
 + * Make compression ratio much more accurate (CASSANDRA-10225)
 + * Optimize building of Clustering object when only one is created 
(CASSANDRA-10409)
 + * Make index building pluggable (CASSANDRA-10681)
 + * Add sstable flush observer (CASSANDRA-10678)
 + * Improve NTS endpoints calculation (CASSANDRA-10200)
 + * Improve performance of the folderSize function (CASSANDRA-10677)
 + * Add support for type casting in selection clause (CASSANDRA-10310)
 + * Added graphing option to cassandra-stress (CASSANDRA-7918)
 + * Abort in-progress queries that time out (CASSANDRA-7392)
 + * Add transparent data encryption core classes (CASSANDRA-9945)
 +Merged from 3.0:
+  * Add back support for 3rd party auth providers to bulk loader 
(CASSANDRA-10873)
   * Eliminate the dependency on jgrapht for UDT resolution (CASSANDRA-10653)
   * (Hadoop) Close Clusters and Sessions in Hadoop Input/Output classes 
(CASSANDRA-1837)
   * Fix sstableloader not working with upper case keyspace name 
(CASSANDRA-10806)



[jira] [Commented] (CASSANDRA-10795) Improve Failure Detector Unknown EP message

2015-12-18 Thread Aleksey Yeschenko (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064920#comment-15064920
 ] 

Aleksey Yeschenko commented on CASSANDRA-10795:
---

Committed to trunk as 
[ff5b7099afa0c459c63bd2993387d966c01d7fcf|https://github.com/apache/cassandra/commit/ff5b7099afa0c459c63bd2993387d966c01d7fcf],
 thanks.

> Improve Failure Detector Unknown EP message
> ---
>
> Key: CASSANDRA-10795
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10795
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Anthony Cozzie
>Assignee: Anthony Cozzie
>Priority: Minor
> Fix For: 3.2
>
> Attachments: trunk-10795-2.txt, trunk-10795.txt
>
>
> When the failure detector is asked whether an unknown endpoint is alive, it 
> prints an uninformative error message.  This patch adds a stack trace to the 
> print statement.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10795) Improve Failure Detector Unknown EP message

2015-12-18 Thread Aleksey Yeschenko (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Yeschenko updated CASSANDRA-10795:
--
Issue Type: Improvement  (was: Bug)

> Improve Failure Detector Unknown EP message
> ---
>
> Key: CASSANDRA-10795
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10795
> Project: Cassandra
>  Issue Type: Improvement
>Reporter: Anthony Cozzie
>Assignee: Anthony Cozzie
>Priority: Minor
> Fix For: 3.2
>
> Attachments: trunk-10795-2.txt, trunk-10795.txt
>
>
> When the failure detector is asked whether an unknown endpoint is alive, it 
> prints an uninformative error message.  This patch adds a stack trace to the 
> print statement.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


cassandra git commit: Improve FailureDetector Unknown EP Error Message

2015-12-18 Thread aleksey
Repository: cassandra
Updated Branches:
  refs/heads/trunk ce7f5cc33 -> ff5b7099a


Improve FailureDetector Unknown EP Error Message

patch by Anthony Cozzie; reviewed by Carl Yeksigian for CASSANDRA-10795


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/ff5b7099
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/ff5b7099
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/ff5b7099

Branch: refs/heads/trunk
Commit: ff5b7099afa0c459c63bd2993387d966c01d7fcf
Parents: ce7f5cc
Author: Anthony Cozzie 
Authored: Tue Dec 1 10:36:32 2015 -0700
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 22:58:54 2015 +

--
 src/java/org/apache/cassandra/gms/FailureDetector.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ff5b7099/src/java/org/apache/cassandra/gms/FailureDetector.java
--
diff --git a/src/java/org/apache/cassandra/gms/FailureDetector.java 
b/src/java/org/apache/cassandra/gms/FailureDetector.java
index a0754b1..5a1179f 100644
--- a/src/java/org/apache/cassandra/gms/FailureDetector.java
+++ b/src/java/org/apache/cassandra/gms/FailureDetector.java
@@ -246,7 +246,7 @@ public class FailureDetector implements IFailureDetector, 
FailureDetectorMBean
 // it's worth being defensive here so minor bugs don't cause 
disproportionate
 // badness.  (See CASSANDRA-1463 for an example).
 if (epState == null)
-logger.error("unknown endpoint {}", ep);
+logger.error("Unknown endpoint: " + ep, new 
IllegalArgumentException(""));
 return epState != null && epState.isAlive();
 }
 



[jira] [Commented] (CASSANDRA-10541) cqlshlib tests cannot run on Windows

2015-12-18 Thread Aleksey Yeschenko (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064906#comment-15064906
 ] 

Aleksey Yeschenko commented on CASSANDRA-10541:
---

Committed without a CHANGES.txt entry as 
[9dd2b5ea0f842eb465ad38ac98f9dd987ba6b7d2|https://github.com/apache/cassandra/commit/9dd2b5ea0f842eb465ad38ac98f9dd987ba6b7d2]
 to 2.2, merged with 3.0 and trunk. Thanks.

> cqlshlib tests cannot run on Windows
> 
>
> Key: CASSANDRA-10541
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10541
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tools
>Reporter: Benjamin Lerer
>Assignee: Paulo Motta
>Priority: Minor
>  Labels: cqlsh, windows
> Fix For: 2.2.x, 3.0.x, 3.x
>
>
> If I try to run the {{cqlshlib}} tests on Windows, I got the following error:
> {quote}
> ==
> ERROR: Failure: AttributeError ('module' object has no attribute 'symlink')
> --
> Traceback (most recent call last):
>   File "C:\Python27\lib\site-packages\nose\loader.py", line 414, in 
> loadTestsFromName
> addr.filename, addr.module)
>   File "C:\Python27\lib\site-packages\nose\importer.py", line 47, in 
> importFromPath
> return self.importFromDir(dir_path, fqname)
>   File "C:\Python27\lib\site-packages\nose\importer.py", line 94, in 
> importFromDir
> mod = load_module(part_fqname, fh, filename, desc)
>   File "[...]\pylib\cqlshlib\test\__init__.py", line 17, in 
> from .cassconnect import create_test_db, remove_test_db
>   File "[...]\pylib\cqlshlib\test\cassconnect.py", line 22, in 
> from .basecase import cql, cqlsh, cqlshlog, TEST_HOST, TEST_PORT, rundir
>   File "[...]\pylib\cqlshlib\test\basecase.py", line 43, in 
> os.symlink(path_to_cqlsh, modulepath)
> AttributeError: 'module' object has no attribute 'symlink'
> --
> Ran 1 test in 0.002s
> FAILED (errors=1)
> {quote}
> The problem comes from the fact tha Windows has no support for symlinks.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


cassandra git commit: Fix EstimatedHistogram creation in nodetool tablehistograms

2015-12-18 Thread yukim
Repository: cassandra
Updated Branches:
  refs/heads/trunk ef37df4e4 -> ce7f5cc33


Fix EstimatedHistogram creation in nodetool tablehistograms

patch by yukim; reviewed by Paulo Motta for CASSANDRA-10859


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/ce7f5cc3
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/ce7f5cc3
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/ce7f5cc3

Branch: refs/heads/trunk
Commit: ce7f5cc332a3f5f8c49a4bc22dbb33bddb813a3d
Parents: ef37df4
Author: Yuki Morishita 
Authored: Wed Dec 16 16:54:40 2015 -0600
Committer: Yuki Morishita 
Committed: Fri Dec 18 16:50:43 2015 -0600

--
 CHANGES.txt |  1 +
 .../tools/nodetool/TableHistograms.java | 10 --
 .../cassandra/utils/EstimatedHistogram.java | 20 
 3 files changed, 25 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ce7f5cc3/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 6bbded8..e8fbc0d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.2
+ * Fix EstimatedHistogram creation in nodetool tablehistograms 
(CASSANDRA-10859)
  * Establish bootstrap stream sessions sequentially (CASSANDRA-6992)
  * Sort compactionhistory output by timestamp (CASSANDRA-10464)
  * More efficient BTree removal (CASSANDRA-9991)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/ce7f5cc3/src/java/org/apache/cassandra/tools/nodetool/TableHistograms.java
--
diff --git a/src/java/org/apache/cassandra/tools/nodetool/TableHistograms.java 
b/src/java/org/apache/cassandra/tools/nodetool/TableHistograms.java
index f3f9b8a..8f4ffa6 100644
--- a/src/java/org/apache/cassandra/tools/nodetool/TableHistograms.java
+++ b/src/java/org/apache/cassandra/tools/nodetool/TableHistograms.java
@@ -79,14 +79,12 @@ public class TableHistograms extends NodeToolCmd
 }
 else
 {
-long[] partitionSizeBucketOffsets = new 
EstimatedHistogram(estimatedPartitionSize.length).getBucketOffsets();
-long[] columnCountBucketOffsets = new 
EstimatedHistogram(estimatedColumnCount.length).getBucketOffsets();
-EstimatedHistogram partitionSizeHist = new 
EstimatedHistogram(partitionSizeBucketOffsets, estimatedPartitionSize);
-EstimatedHistogram columnCountHist = new 
EstimatedHistogram(columnCountBucketOffsets, estimatedColumnCount);
+EstimatedHistogram partitionSizeHist = new 
EstimatedHistogram(estimatedPartitionSize);
+EstimatedHistogram columnCountHist = new 
EstimatedHistogram(estimatedColumnCount);
 
 if (partitionSizeHist.isOverflowed())
 {
-System.err.println(String.format("Row sizes are larger than 
%s, unable to calculate percentiles", 
partitionSizeBucketOffsets[partitionSizeBucketOffsets.length - 1]));
+System.err.println(String.format("Row sizes are larger than 
%s, unable to calculate percentiles", 
partitionSizeHist.getLargestBucketOffset()));
 for (int i = 0; i < offsetPercentiles.length; i++)
 estimatedRowSizePercentiles[i] = Double.NaN;
 }
@@ -98,7 +96,7 @@ public class TableHistograms extends NodeToolCmd
 
 if (columnCountHist.isOverflowed())
 {
-System.err.println(String.format("Column counts are larger 
than %s, unable to calculate percentiles", 
columnCountBucketOffsets[columnCountBucketOffsets.length - 1]));
+System.err.println(String.format("Column counts are larger 
than %s, unable to calculate percentiles", 
columnCountHist.getLargestBucketOffset()));
 for (int i = 0; i < estimatedColumnCountPercentiles.length; 
i++)
 estimatedColumnCountPercentiles[i] = Double.NaN;
 }

http://git-wip-us.apache.org/repos/asf/cassandra/blob/ce7f5cc3/src/java/org/apache/cassandra/utils/EstimatedHistogram.java
--
diff --git a/src/java/org/apache/cassandra/utils/EstimatedHistogram.java 
b/src/java/org/apache/cassandra/utils/EstimatedHistogram.java
index 0249980..aa141f7 100644
--- a/src/java/org/apache/cassandra/utils/EstimatedHistogram.java
+++ b/src/java/org/apache/cassandra/utils/EstimatedHistogram.java
@@ -65,6 +65,18 @@ public class EstimatedHistogram
 buckets = new AtomicLongArray(bucketOffsets.length + 1);
 }
 
+/**
+ * Create EstimatedHistogram from only bucket data.
+ *
+ * @param bucketData bucket data
+ */
+public EstimatedHistogram(long[] bucketData)
+{
+assert buc

[jira] [Commented] (CASSANDRA-10887) Pending range calculator gives wrong pending ranges for moves

2015-12-18 Thread Richard Low (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064904#comment-15064904
 ] 

Richard Low commented on CASSANDRA-10887:
-

Is your key 'jdoe' stored on node1?

> Pending range calculator gives wrong pending ranges for moves
> -
>
> Key: CASSANDRA-10887
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10887
> Project: Cassandra
>  Issue Type: Bug
>  Components: Coordination
>Reporter: Richard Low
>Assignee: Branimir Lambov
>Priority: Critical
>
> My understanding is the PendingRangeCalculator is meant to calculate who 
> should receive extra writes during range movements. However, it adds the 
> wrong ranges for moves. An extreme example of this can be seen in the 
> following reproduction. Create a 5 node cluster (I did this on 2.0.16 and 
> 2.2.4) and a keyspace RF=3 and a simple table. Then start moving a node and 
> immediately kill -9 it. Now you see a node as down and moving in the ring. 
> Try a quorum write for a partition that is stored on that node - it will fail 
> with a timeout. Further, all CAS reads or writes fail immediately with 
> unavailable exception because they attempt to include the moving node twice. 
> This is likely to be the cause of CASSANDRA-10423.
> In my example I had this ring:
> 127.0.0.1  rack1   Up Normal  170.97 KB   20.00%  
> -9223372036854775808
> 127.0.0.2  rack1   Up Normal  124.06 KB   20.00%  
> -5534023222112865485
> 127.0.0.3  rack1   Down   Moving  108.7 KB40.00%  
> 1844674407370955160
> 127.0.0.4  rack1   Up Normal  142.58 KB   0.00%   
> 1844674407370955161
> 127.0.0.5  rack1   Up Normal  118.64 KB   20.00%  
> 5534023222112865484
> Node 3 was moving to -1844674407370955160. I added logging to print the 
> pending and natural endpoints. For ranges owned by node 3, node 3 appeared in 
> pending and natural endpoints. The blockFor is increased to 3 so we’re 
> effectively doing CL.ALL operations. This manifests as write timeouts and CAS 
> unavailables when the node is down.
> The correct pending range for this scenario is node 1 is gaining the range 
> (-1844674407370955160, 1844674407370955160). So node 1 should be added as a 
> destination for writes and CAS for this range, not node 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[6/6] cassandra git commit: Merge branch 'cassandra-3.0' into trunk

2015-12-18 Thread aleksey
Merge branch 'cassandra-3.0' into trunk


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/ef37df4e
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/ef37df4e
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/ef37df4e

Branch: refs/heads/trunk
Commit: ef37df4e42362457bffb15c305388e055f8f1f87
Parents: 0f5e780 2e09583
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 22:48:36 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 22:48:36 2015 +

--
 bin/cqlsh.py |   4 +-
 pylib/cqlshlib/test/run_cqlsh.py | 108 +++---
 pylib/cqlshlib/test/test_cqlsh_completion.py |   3 +
 pylib/cqlshlib/test/test_cqlsh_output.py |  22 +++--
 pylib/cqlshlib/test/winpty.py|  50 ++
 5 files changed, 144 insertions(+), 43 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ef37df4e/bin/cqlsh.py
--



[1/6] cassandra git commit: Fix cqlshlib tests on Windows

2015-12-18 Thread aleksey
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.2 b03ce9fd4 -> 9dd2b5ea0
  refs/heads/cassandra-3.0 d877ba073 -> 2e095833d
  refs/heads/trunk 0f5e78078 -> ef37df4e4


Fix cqlshlib tests on Windows

patch by Paulo Motta; reviewed by Jim Witschey for CASSANDRA-10541


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/9dd2b5ea
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/9dd2b5ea
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/9dd2b5ea

Branch: refs/heads/cassandra-2.2
Commit: 9dd2b5ea0f842eb465ad38ac98f9dd987ba6b7d2
Parents: b03ce9f
Author: Paulo Motta 
Authored: Mon Nov 16 15:48:20 2015 -0200
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 22:46:31 2015 +

--
 bin/cqlsh.py |   4 +-
 pylib/cqlshlib/test/run_cqlsh.py | 108 +++---
 pylib/cqlshlib/test/test_cqlsh_completion.py |   3 +
 pylib/cqlshlib/test/test_cqlsh_output.py |  22 +++--
 pylib/cqlshlib/test/winpty.py|  50 ++
 5 files changed, 144 insertions(+), 43 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/9dd2b5ea/bin/cqlsh.py
--
diff --git a/bin/cqlsh.py b/bin/cqlsh.py
index 42c2923..1119289 100644
--- a/bin/cqlsh.py
+++ b/bin/cqlsh.py
@@ -210,6 +210,8 @@ parser.add_option('--cqlversion', default=DEFAULT_CQLVER,
 parser.add_option("-e", "--execute", help='Execute the statement and quit.')
 parser.add_option("--connect-timeout", 
default=DEFAULT_CONNECT_TIMEOUT_SECONDS, dest='connect_timeout',
   help='Specify the connection timeout in seconds (default: 
%default seconds).')
+parser.add_option("-t", "--tty", action='store_true', dest='tty',
+  help='Force tty mode (command prompt).')
 
 optvalues = optparse.Values()
 (options, arguments) = parser.parse_args(sys.argv[1:], values=optvalues)
@@ -2328,7 +2330,7 @@ def read_options(cmdlineargs, environment):
 optvalues.ssl = False
 optvalues.encoding = None
 
-optvalues.tty = sys.stdin.isatty()
+optvalues.tty = option_with_default(configs.getboolean, 'ui', 'tty', 
sys.stdin.isatty())
 optvalues.cqlversion = option_with_default(configs.get, 'cql', 'version', 
DEFAULT_CQLVER)
 optvalues.connect_timeout = option_with_default(configs.getint, 
'connection', 'timeout', DEFAULT_CONNECT_TIMEOUT_SECONDS)
 optvalues.execute = None

http://git-wip-us.apache.org/repos/asf/cassandra/blob/9dd2b5ea/pylib/cqlshlib/test/run_cqlsh.py
--
diff --git a/pylib/cqlshlib/test/run_cqlsh.py b/pylib/cqlshlib/test/run_cqlsh.py
index 08e9e41..b011df4 100644
--- a/pylib/cqlshlib/test/run_cqlsh.py
+++ b/pylib/cqlshlib/test/run_cqlsh.py
@@ -17,17 +17,28 @@
 # NOTE: this testing tool is *nix specific
 
 import os
+import sys
 import re
-import pty
-import fcntl
 import contextlib
 import subprocess
 import signal
 import math
 from time import time
 from . import basecase
+from os.path import join, normpath
 
-DEFAULT_CQLSH_PROMPT = os.linesep + '(\S+@)?cqlsh(:\S+)?> '
+
+def is_win():
+return sys.platform in ("cygwin", "win32")
+
+if is_win():
+from winpty import WinPty
+DEFAULT_PREFIX = ''
+else:
+import pty
+DEFAULT_PREFIX = os.linesep
+
+DEFAULT_CQLSH_PROMPT = DEFAULT_PREFIX + '(\S+@)?cqlsh(:\S+)?> '
 DEFAULT_CQLSH_TERM = 'xterm'
 
 cqlshlog = basecase.cqlshlog
@@ -41,10 +52,6 @@ def set_controlling_pty(master, slave):
 os.close(slave)
 os.close(os.open(os.ttyname(1), os.O_RDWR))
 
-def set_nonblocking(fd):
-flags = fcntl.fcntl(fd, fcntl.F_GETFL)
-fcntl.fcntl(fd, fcntl.F_SETFL, flags | os.O_NONBLOCK)
-
 @contextlib.contextmanager
 def raising_signal(signum, exc):
 """
@@ -93,12 +100,21 @@ def timing_out_alarm(seconds):
 finally:
 signal.alarm(0)
 
-# setitimer is new in 2.6, but it's still worth supporting, for potentially
-# faster tests because of sub-second resolution on timeouts.
-if hasattr(signal, 'setitimer'):
-timing_out = timing_out_itimer
+if is_win():
+try:
+import eventlet
+except ImportError, e:
+sys.exit("evenlet library required to run cqlshlib tests on Windows")
+
+def timing_out(seconds):
+return eventlet.Timeout(seconds, TimeoutError)
 else:
-timing_out = timing_out_alarm
+# setitimer is new in 2.6, but it's still worth supporting, for potentially
+# faster tests because of sub-second resolution on timeouts.
+if hasattr(signal, 'setitimer'):
+timing_out = timing_out_itimer
+else:
+timing_out = timing_out_alarm
 
 def noop(*a):
 pass
@@ -108,6 +124,7 @@ class ProcRunner:
 self.exe_path = path
 self.args

[3/6] cassandra git commit: Fix cqlshlib tests on Windows

2015-12-18 Thread aleksey
Fix cqlshlib tests on Windows

patch by Paulo Motta; reviewed by Jim Witschey for CASSANDRA-10541


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/9dd2b5ea
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/9dd2b5ea
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/9dd2b5ea

Branch: refs/heads/trunk
Commit: 9dd2b5ea0f842eb465ad38ac98f9dd987ba6b7d2
Parents: b03ce9f
Author: Paulo Motta 
Authored: Mon Nov 16 15:48:20 2015 -0200
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 22:46:31 2015 +

--
 bin/cqlsh.py |   4 +-
 pylib/cqlshlib/test/run_cqlsh.py | 108 +++---
 pylib/cqlshlib/test/test_cqlsh_completion.py |   3 +
 pylib/cqlshlib/test/test_cqlsh_output.py |  22 +++--
 pylib/cqlshlib/test/winpty.py|  50 ++
 5 files changed, 144 insertions(+), 43 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/9dd2b5ea/bin/cqlsh.py
--
diff --git a/bin/cqlsh.py b/bin/cqlsh.py
index 42c2923..1119289 100644
--- a/bin/cqlsh.py
+++ b/bin/cqlsh.py
@@ -210,6 +210,8 @@ parser.add_option('--cqlversion', default=DEFAULT_CQLVER,
 parser.add_option("-e", "--execute", help='Execute the statement and quit.')
 parser.add_option("--connect-timeout", 
default=DEFAULT_CONNECT_TIMEOUT_SECONDS, dest='connect_timeout',
   help='Specify the connection timeout in seconds (default: 
%default seconds).')
+parser.add_option("-t", "--tty", action='store_true', dest='tty',
+  help='Force tty mode (command prompt).')
 
 optvalues = optparse.Values()
 (options, arguments) = parser.parse_args(sys.argv[1:], values=optvalues)
@@ -2328,7 +2330,7 @@ def read_options(cmdlineargs, environment):
 optvalues.ssl = False
 optvalues.encoding = None
 
-optvalues.tty = sys.stdin.isatty()
+optvalues.tty = option_with_default(configs.getboolean, 'ui', 'tty', 
sys.stdin.isatty())
 optvalues.cqlversion = option_with_default(configs.get, 'cql', 'version', 
DEFAULT_CQLVER)
 optvalues.connect_timeout = option_with_default(configs.getint, 
'connection', 'timeout', DEFAULT_CONNECT_TIMEOUT_SECONDS)
 optvalues.execute = None

http://git-wip-us.apache.org/repos/asf/cassandra/blob/9dd2b5ea/pylib/cqlshlib/test/run_cqlsh.py
--
diff --git a/pylib/cqlshlib/test/run_cqlsh.py b/pylib/cqlshlib/test/run_cqlsh.py
index 08e9e41..b011df4 100644
--- a/pylib/cqlshlib/test/run_cqlsh.py
+++ b/pylib/cqlshlib/test/run_cqlsh.py
@@ -17,17 +17,28 @@
 # NOTE: this testing tool is *nix specific
 
 import os
+import sys
 import re
-import pty
-import fcntl
 import contextlib
 import subprocess
 import signal
 import math
 from time import time
 from . import basecase
+from os.path import join, normpath
 
-DEFAULT_CQLSH_PROMPT = os.linesep + '(\S+@)?cqlsh(:\S+)?> '
+
+def is_win():
+return sys.platform in ("cygwin", "win32")
+
+if is_win():
+from winpty import WinPty
+DEFAULT_PREFIX = ''
+else:
+import pty
+DEFAULT_PREFIX = os.linesep
+
+DEFAULT_CQLSH_PROMPT = DEFAULT_PREFIX + '(\S+@)?cqlsh(:\S+)?> '
 DEFAULT_CQLSH_TERM = 'xterm'
 
 cqlshlog = basecase.cqlshlog
@@ -41,10 +52,6 @@ def set_controlling_pty(master, slave):
 os.close(slave)
 os.close(os.open(os.ttyname(1), os.O_RDWR))
 
-def set_nonblocking(fd):
-flags = fcntl.fcntl(fd, fcntl.F_GETFL)
-fcntl.fcntl(fd, fcntl.F_SETFL, flags | os.O_NONBLOCK)
-
 @contextlib.contextmanager
 def raising_signal(signum, exc):
 """
@@ -93,12 +100,21 @@ def timing_out_alarm(seconds):
 finally:
 signal.alarm(0)
 
-# setitimer is new in 2.6, but it's still worth supporting, for potentially
-# faster tests because of sub-second resolution on timeouts.
-if hasattr(signal, 'setitimer'):
-timing_out = timing_out_itimer
+if is_win():
+try:
+import eventlet
+except ImportError, e:
+sys.exit("evenlet library required to run cqlshlib tests on Windows")
+
+def timing_out(seconds):
+return eventlet.Timeout(seconds, TimeoutError)
 else:
-timing_out = timing_out_alarm
+# setitimer is new in 2.6, but it's still worth supporting, for potentially
+# faster tests because of sub-second resolution on timeouts.
+if hasattr(signal, 'setitimer'):
+timing_out = timing_out_itimer
+else:
+timing_out = timing_out_alarm
 
 def noop(*a):
 pass
@@ -108,6 +124,7 @@ class ProcRunner:
 self.exe_path = path
 self.args = args
 self.tty = bool(tty)
+self.realtty = self.tty and not is_win()
 if env is None:
 env = {}
 self.env = env
@@ -118,30 +135,35 @@ class ProcR

[2/6] cassandra git commit: Fix cqlshlib tests on Windows

2015-12-18 Thread aleksey
Fix cqlshlib tests on Windows

patch by Paulo Motta; reviewed by Jim Witschey for CASSANDRA-10541


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/9dd2b5ea
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/9dd2b5ea
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/9dd2b5ea

Branch: refs/heads/cassandra-3.0
Commit: 9dd2b5ea0f842eb465ad38ac98f9dd987ba6b7d2
Parents: b03ce9f
Author: Paulo Motta 
Authored: Mon Nov 16 15:48:20 2015 -0200
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 22:46:31 2015 +

--
 bin/cqlsh.py |   4 +-
 pylib/cqlshlib/test/run_cqlsh.py | 108 +++---
 pylib/cqlshlib/test/test_cqlsh_completion.py |   3 +
 pylib/cqlshlib/test/test_cqlsh_output.py |  22 +++--
 pylib/cqlshlib/test/winpty.py|  50 ++
 5 files changed, 144 insertions(+), 43 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/9dd2b5ea/bin/cqlsh.py
--
diff --git a/bin/cqlsh.py b/bin/cqlsh.py
index 42c2923..1119289 100644
--- a/bin/cqlsh.py
+++ b/bin/cqlsh.py
@@ -210,6 +210,8 @@ parser.add_option('--cqlversion', default=DEFAULT_CQLVER,
 parser.add_option("-e", "--execute", help='Execute the statement and quit.')
 parser.add_option("--connect-timeout", 
default=DEFAULT_CONNECT_TIMEOUT_SECONDS, dest='connect_timeout',
   help='Specify the connection timeout in seconds (default: 
%default seconds).')
+parser.add_option("-t", "--tty", action='store_true', dest='tty',
+  help='Force tty mode (command prompt).')
 
 optvalues = optparse.Values()
 (options, arguments) = parser.parse_args(sys.argv[1:], values=optvalues)
@@ -2328,7 +2330,7 @@ def read_options(cmdlineargs, environment):
 optvalues.ssl = False
 optvalues.encoding = None
 
-optvalues.tty = sys.stdin.isatty()
+optvalues.tty = option_with_default(configs.getboolean, 'ui', 'tty', 
sys.stdin.isatty())
 optvalues.cqlversion = option_with_default(configs.get, 'cql', 'version', 
DEFAULT_CQLVER)
 optvalues.connect_timeout = option_with_default(configs.getint, 
'connection', 'timeout', DEFAULT_CONNECT_TIMEOUT_SECONDS)
 optvalues.execute = None

http://git-wip-us.apache.org/repos/asf/cassandra/blob/9dd2b5ea/pylib/cqlshlib/test/run_cqlsh.py
--
diff --git a/pylib/cqlshlib/test/run_cqlsh.py b/pylib/cqlshlib/test/run_cqlsh.py
index 08e9e41..b011df4 100644
--- a/pylib/cqlshlib/test/run_cqlsh.py
+++ b/pylib/cqlshlib/test/run_cqlsh.py
@@ -17,17 +17,28 @@
 # NOTE: this testing tool is *nix specific
 
 import os
+import sys
 import re
-import pty
-import fcntl
 import contextlib
 import subprocess
 import signal
 import math
 from time import time
 from . import basecase
+from os.path import join, normpath
 
-DEFAULT_CQLSH_PROMPT = os.linesep + '(\S+@)?cqlsh(:\S+)?> '
+
+def is_win():
+return sys.platform in ("cygwin", "win32")
+
+if is_win():
+from winpty import WinPty
+DEFAULT_PREFIX = ''
+else:
+import pty
+DEFAULT_PREFIX = os.linesep
+
+DEFAULT_CQLSH_PROMPT = DEFAULT_PREFIX + '(\S+@)?cqlsh(:\S+)?> '
 DEFAULT_CQLSH_TERM = 'xterm'
 
 cqlshlog = basecase.cqlshlog
@@ -41,10 +52,6 @@ def set_controlling_pty(master, slave):
 os.close(slave)
 os.close(os.open(os.ttyname(1), os.O_RDWR))
 
-def set_nonblocking(fd):
-flags = fcntl.fcntl(fd, fcntl.F_GETFL)
-fcntl.fcntl(fd, fcntl.F_SETFL, flags | os.O_NONBLOCK)
-
 @contextlib.contextmanager
 def raising_signal(signum, exc):
 """
@@ -93,12 +100,21 @@ def timing_out_alarm(seconds):
 finally:
 signal.alarm(0)
 
-# setitimer is new in 2.6, but it's still worth supporting, for potentially
-# faster tests because of sub-second resolution on timeouts.
-if hasattr(signal, 'setitimer'):
-timing_out = timing_out_itimer
+if is_win():
+try:
+import eventlet
+except ImportError, e:
+sys.exit("evenlet library required to run cqlshlib tests on Windows")
+
+def timing_out(seconds):
+return eventlet.Timeout(seconds, TimeoutError)
 else:
-timing_out = timing_out_alarm
+# setitimer is new in 2.6, but it's still worth supporting, for potentially
+# faster tests because of sub-second resolution on timeouts.
+if hasattr(signal, 'setitimer'):
+timing_out = timing_out_itimer
+else:
+timing_out = timing_out_alarm
 
 def noop(*a):
 pass
@@ -108,6 +124,7 @@ class ProcRunner:
 self.exe_path = path
 self.args = args
 self.tty = bool(tty)
+self.realtty = self.tty and not is_win()
 if env is None:
 env = {}
 self.env = env
@@ -118,30 +135,35 @@ cla

[5/6] cassandra git commit: Merge branch 'cassandra-2.2' into cassandra-3.0

2015-12-18 Thread aleksey
Merge branch 'cassandra-2.2' into cassandra-3.0


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/2e095833
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/2e095833
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/2e095833

Branch: refs/heads/cassandra-3.0
Commit: 2e095833d9a45a6f1032b8beac2d94a47409a5e0
Parents: d877ba0 9dd2b5e
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 22:48:12 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 22:48:12 2015 +

--
 bin/cqlsh.py |   4 +-
 pylib/cqlshlib/test/run_cqlsh.py | 108 +++---
 pylib/cqlshlib/test/test_cqlsh_completion.py |   3 +
 pylib/cqlshlib/test/test_cqlsh_output.py |  22 +++--
 pylib/cqlshlib/test/winpty.py|  50 ++
 5 files changed, 144 insertions(+), 43 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/2e095833/bin/cqlsh.py
--

http://git-wip-us.apache.org/repos/asf/cassandra/blob/2e095833/pylib/cqlshlib/test/test_cqlsh_completion.py
--

http://git-wip-us.apache.org/repos/asf/cassandra/blob/2e095833/pylib/cqlshlib/test/test_cqlsh_output.py
--



[4/6] cassandra git commit: Merge branch 'cassandra-2.2' into cassandra-3.0

2015-12-18 Thread aleksey
Merge branch 'cassandra-2.2' into cassandra-3.0


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/2e095833
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/2e095833
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/2e095833

Branch: refs/heads/trunk
Commit: 2e095833d9a45a6f1032b8beac2d94a47409a5e0
Parents: d877ba0 9dd2b5e
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 22:48:12 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 22:48:12 2015 +

--
 bin/cqlsh.py |   4 +-
 pylib/cqlshlib/test/run_cqlsh.py | 108 +++---
 pylib/cqlshlib/test/test_cqlsh_completion.py |   3 +
 pylib/cqlshlib/test/test_cqlsh_output.py |  22 +++--
 pylib/cqlshlib/test/winpty.py|  50 ++
 5 files changed, 144 insertions(+), 43 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/2e095833/bin/cqlsh.py
--

http://git-wip-us.apache.org/repos/asf/cassandra/blob/2e095833/pylib/cqlshlib/test/test_cqlsh_completion.py
--

http://git-wip-us.apache.org/repos/asf/cassandra/blob/2e095833/pylib/cqlshlib/test/test_cqlsh_output.py
--



[jira] [Comment Edited] (CASSANDRA-10887) Pending range calculator gives wrong pending ranges for moves

2015-12-18 Thread Philip Thompson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064508#comment-15064508
 ] 

Philip Thompson edited comment on CASSANDRA-10887 at 12/18/15 9:44 PM:
---

I've written up a dtest here: 
https://github.com/riptano/cassandra-dtest/pull/717 and pinged Branimir about 
it. I can't reproduce manually with Simon's steps or with my test on 2.1, 2.2, 
or 3.0. I've asked [~mambocab] to take a look as well.

I did also run against 2.0.16, to be clear.


was (Author: philipthompson):
I've written up a dtest here: 
https://github.com/riptano/cassandra-dtest/pull/717 and pinged Branimir about 
it. I can't reproduce manually with Simon's steps or with my test on 2.1, 2.2, 
or 3.0. I've asked [~mambocab] to take a look as well.

> Pending range calculator gives wrong pending ranges for moves
> -
>
> Key: CASSANDRA-10887
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10887
> Project: Cassandra
>  Issue Type: Bug
>  Components: Coordination
>Reporter: Richard Low
>Assignee: Branimir Lambov
>Priority: Critical
>
> My understanding is the PendingRangeCalculator is meant to calculate who 
> should receive extra writes during range movements. However, it adds the 
> wrong ranges for moves. An extreme example of this can be seen in the 
> following reproduction. Create a 5 node cluster (I did this on 2.0.16 and 
> 2.2.4) and a keyspace RF=3 and a simple table. Then start moving a node and 
> immediately kill -9 it. Now you see a node as down and moving in the ring. 
> Try a quorum write for a partition that is stored on that node - it will fail 
> with a timeout. Further, all CAS reads or writes fail immediately with 
> unavailable exception because they attempt to include the moving node twice. 
> This is likely to be the cause of CASSANDRA-10423.
> In my example I had this ring:
> 127.0.0.1  rack1   Up Normal  170.97 KB   20.00%  
> -9223372036854775808
> 127.0.0.2  rack1   Up Normal  124.06 KB   20.00%  
> -5534023222112865485
> 127.0.0.3  rack1   Down   Moving  108.7 KB40.00%  
> 1844674407370955160
> 127.0.0.4  rack1   Up Normal  142.58 KB   0.00%   
> 1844674407370955161
> 127.0.0.5  rack1   Up Normal  118.64 KB   20.00%  
> 5534023222112865484
> Node 3 was moving to -1844674407370955160. I added logging to print the 
> pending and natural endpoints. For ranges owned by node 3, node 3 appeared in 
> pending and natural endpoints. The blockFor is increased to 3 so we’re 
> effectively doing CL.ALL operations. This manifests as write timeouts and CAS 
> unavailables when the node is down.
> The correct pending range for this scenario is node 1 is gaining the range 
> (-1844674407370955160, 1844674407370955160). So node 1 should be added as a 
> destination for writes and CAS for this range, not node 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (CASSANDRA-10906) List index out of range

2015-12-18 Thread Scott Chaffee (JIRA)
Scott Chaffee created CASSANDRA-10906:
-

 Summary: List index out of range
 Key: CASSANDRA-10906
 URL: https://issues.apache.org/jira/browse/CASSANDRA-10906
 Project: Cassandra
  Issue Type: Bug
  Components: CQL
 Environment: cqlsh:fd> show version;
[cqlsh 5.0.1 | Cassandra 2.2.3 | CQL spec 3.3.1 | Native protocol v4]

java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

Reporter: Scott Chaffee
 Attachments: Schedule.csv

Using COPY FROM command to import a .csv file with a header row and '|' 
delimited you get an error back "List index out of range"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10779) AbstractTracingAwareExecutorService.java:169 - Uncaught exception on thread Thread

2015-12-18 Thread Carl Yeksigian (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064642#comment-15064642
 ] 

Carl Yeksigian commented on CASSANDRA-10779:


I think there is a different issue lurking here, which is that we are 
responding to mutations early on the replicas if we don't acquire the lock 
right away. We are returning early from the {{mutation.apply}} call because we 
were unable to acquire the lock, but in the {{MutationVerbHandler}}, we're only 
don't reply in the case we get a WTE (which only happens in the MV path).

The reason we changed this to put itself back on the queue when it was unable 
to acquire the lock was that we would otherwise be blocking other mutations 
that are waiting, especially the coordinator batchlog mutations. Since we 
aren't doing the coordinator batchlog, it might be best to just switch back to 
waiting for the lock synchronously. The other option would be to include a 
callback function with the mutation to run on success/failure.

I'm currently testing the impact of changing this to acquiring the lock 
synchronously; I'll also look into the amount of change required to add 
callback functions.

> AbstractTracingAwareExecutorService.java:169 - Uncaught exception on thread 
> Thread
> --
>
> Key: CASSANDRA-10779
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10779
> Project: Cassandra
>  Issue Type: Bug
>  Components: Coordination
> Environment: Windows 7 64-bit, Cassandra v3.0.0, Java 1.8u60
>Reporter: Will Zhang
>Assignee: Carl Yeksigian
> Fix For: 3.0.x
>
>
> Hi guys,
> I encountered the following warning message when I was testing to upgrade 
> from v2.2.2 to v3.0.0. 
> It looks like a write time-out but in an uncaught exception. Could this be an 
> easy fix?
> Log file section below. Thank you!
> {code}
>   WARN  [SharedPool-Worker-64] 2015-11-26 14:04:24,678 
> AbstractTracingAwareExecutorService.java:169 - Uncaught exception on thread 
> Thread[SharedPool-Worker-64,10,main]: {}
> org.apache.cassandra.exceptions.WriteTimeoutException: Operation timed out - 
> received only 0 responses.
>   at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:427) 
> ~[apache-cassandra-3.0.0.jar:3.0.0]
>   at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:386) 
> ~[apache-cassandra-3.0.0.jar:3.0.0]
>   at org.apache.cassandra.db.Mutation.apply(Mutation.java:205) 
> ~[apache-cassandra-3.0.0.jar:3.0.0]
>   at 
> org.apache.cassandra.db.Keyspace.lambda$apply$59(Keyspace.java:435) 
> ~[apache-cassandra-3.0.0.jar:3.0.0]
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> ~[na:1.8.0_60]
>   at 
> org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
>  ~[apache-cassandra-3.0.0.jar:3.0.0]
>   at 
> org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) 
> [apache-cassandra-3.0.0.jar:3.0.0]
>   at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
>   INFO  [IndexSummaryManager:1] 2015-11-26 14:41:10,527 
> IndexSummaryManager.java:257 - Redistributing index summaries
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10859) AssertionError in nodetool cfhistograms

2015-12-18 Thread Paulo Motta (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064602#comment-15064602
 ] 

Paulo Motta commented on CASSANDRA-10859:
-

code and tests look good, marking as ready to commit. thanks!

> AssertionError in nodetool cfhistograms
> ---
>
> Key: CASSANDRA-10859
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10859
> Project: Cassandra
>  Issue Type: Sub-task
>  Components: Tools
>Reporter: Jim Witschey
>Assignee: Yuki Morishita
> Fix For: 3.0.x, 3.x
>
>
> {{nodetool cfhistograms}} raises an {{AssertionError}} on the CassCI 
> {{trunk}} jobs:
> http://cassci.datastax.com/job/trunk_dtest/lastCompletedBuild/testReport/jmx_test/TestJMX/cfhistograms_test/history/
> This regression started in this build on CassCI and has failed consistently 
> since then:
> http://cassci.datastax.com/job/trunk_dtest/806/testReport/junit/jmx_test/TestJMX/cfhistograms_test/
> I can't find any recent dtest changes to this method, so I believe it's a 
> Cassandra bug. Here's the changeset for the first failing build:
> http://cassci.datastax.com/job/trunk_dtest/806/changes
> Maybe something in the changes to the scripts here introduced the bug:
> https://github.com/apache/cassandra/commit/b5240204d7aa2a32c6649d19da2b961c856cde28
> [~jjordan] could you have a look at this please?
> This appears to only affect {{trunk}} at present.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-9830) Option to disable bloom filter in highest level of LCS sstables

2015-12-18 Thread Paulo Motta (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064573#comment-15064573
 ] 

Paulo Motta commented on CASSANDRA-9830:


Rebased and submitted cstar_perf tests comparing LCS with default settings vs 
enabled {{skip_top_level_bloom_filter}} option on 
[ssd|http://cstar.datastax.com/tests/id/35023b30-a5bc-11e5-aa2d-0256e416528f] 
and 
[hdd|http://cstar.datastax.com/tests/id/3d14a8ac-a5bd-11e5-aa2d-0256e416528f].

Will report back when results are ready and maybe play around with parameters 
(sstable size, bloom filter fp chance, etc) after initial results.

> Option to disable bloom filter in highest level of LCS sstables
> ---
>
> Key: CASSANDRA-9830
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9830
> Project: Cassandra
>  Issue Type: New Feature
>  Components: Compaction
>Reporter: Jonathan Ellis
>Assignee: Paulo Motta
>Priority: Minor
>  Labels: performance
> Fix For: 3.2
>
>
> We expect about 90% of data to be in the highest level of LCS in a fully 
> populated series.  (See also CASSANDRA-9829.)
> Thus if the user is primarily asking for data (partitions) that has actually 
> been inserted, the bloom filter on the highest level only helps reject 
> sstables about 10% of the time.
> We should add an option that suppresses bloom filter creation on top-level 
> sstables.  This will dramatically reduce memory usage for LCS and may even 
> improve performance as we no longer check a low-value filter.
> (This is also an idea from RocksDB.)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-9923) stress write and counter_write hangs

2015-12-18 Thread T Jake Luciani (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064528#comment-15064528
 ] 

T Jake Luciani commented on CASSANDRA-9923:
---

Ah I understand. ok.

> stress write and counter_write hangs
> 
>
> Key: CASSANDRA-9923
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9923
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tools
>Reporter: Robert Stupp
>Assignee: T Jake Luciani
>Priority: Minor
>  Labels: stress
>
> (Sorry for the vague description)
> I tried some cstar tests against counter columns. But all these tests against 
> 2.1 and 2.2 ended (hang) during with the following output:
> {noformat}
> Created keyspaces. Sleeping 3s for propagation.
> Sleeping 2s...
> Warming up COUNTER_WRITE with 15 iterations...
> Running COUNTER_WRITE with 300 threads for 1500 iteration
> type,  total ops,op/s,pk/s,   row/s,mean, med, .95,   
>   .99,.999, max,   time,   stderr, errors,  gc: #,  max ms,  sum ms,  
> sdv ms,  mb
> total, 98073,   98054,   98054,   98054, 3.1, 1.7, 8.9,   
>  23.2,89.9,   107.7,1.0,  0.0,  0,  0,   0,   0,  
>  0,   0
> total,188586,   72492,   72492,   72492, 4.1, 1.5,10.0,   
>  61.4,   202.8,   214.7,2.2,  0.13101,  0,  3, 564, 564,  
>  6,3447
> total,363880,  137986,  137986,  137986, 2.2, 1.4, 4.1,   
>   9.6,   207.1,   253.3,3.5,  0.18684,  0,  0,   0,   0,  
>  0,   0
> total,460122,  105062,  105062,  105062, 2.8, 1.4, 4.6,   
>  14.7,   225.6,   236.2,4.4,  0.13969,  0,  1, 214, 214,  
>  0,1199
> total,600625,  111453,  111453,  111453, 2.7, 1.4, 3.8,   
>  10.4,   231.5,   241.6,5.7,  0.11366,  0,  2, 442, 442,  
>  1,2389
> total,745680,  149583,  149583,  149583, 2.0, 1.4, 3.6,   
>   6.7,   155.8,   159.7,6.7,  0.11318,  0,  0,   0,   0,  
>  0,   0
> total,828453,   63632,   63632,   63632, 4.7, 1.4, 4.8,   
> 261.9,   274.5,   279.3,8.0,  0.12645,  0,  3, 782, 782,  
>  1,3542
> total,   1009560,  172429,  172429,  172429, 1.7, 1.4, 3.7,   
>   6.1,16.2,29.7,9.0,  0.11629,  0,  0,   0,   0,  
>  0,   0
> total,   1062409,   53860,   53860,   53860, 5.5, 1.3, 8.6,   
> 270.3,   293.4,   324.3,   10.0,  0.12738,  0,  2, 542, 542,  
>  7,2354
> total,   1186672,   96540,   96540,   96540, 3.1, 1.5, 5.9,   
>  14.5,   266.4,   277.6,   11.3,  0.11451,  0,  1, 260, 260,  
>  0,1183
> {noformat}
> ...
> {noformat}
> total,   4977251, 238, 238, 238, 0.7, 0.6, 0.7,   
>   1.3, 3.4,   158.5,  352.3,  0.11749,  0,  0,   0,   0,  
>  0,   0
> total,   4979839, 214, 214, 214, 0.6, 0.6, 0.7,   
>   1.3, 2.5, 2.8,  364.4,  0.11761,  0,  0,   0,   0,  
>  0,   0
> total,   4981729, 191, 191, 191, 0.6, 0.6, 0.7,   
>   1.3, 3.2, 3.3,  374.3,  0.11774,  0,  0,   0,   0,  
>  0,   0
> total,   4983362, 167, 167, 167, 0.8, 0.7, 1.8,   
>   2.7, 3.9, 5.8,  384.0,  0.11787,  0,  0,   0,   0,  
>  0,   0
> total,   4985171, 153, 153, 153, 0.7, 0.6, 1.2,   
>   1.4, 2.0, 3.3,  395.9,  0.11799,  0,  0,   0,   0,  
>  0,   0
> total,   4986684, 137, 137, 137, 0.7, 0.6, 0.8,   
>   1.3, 2.0, 2.0,  406.9,  0.11812,  0,  0,   0,   0,  
>  0,   0
> total,   4988410, 121, 121, 121, 0.7, 0.7, 0.8,   
>   1.3, 2.0, 2.8,  421.1,  0.11824,  0,  0,   0,   0,  
>  0,   0
> total,   4990216,  99,  99,  99, 0.7, 0.7, 0.8,   
>   1.4, 2.6, 2.8,  439.5,  0.11836,  0,  0,   0,   0,  
>  0,   0
> total,   4991765,  81,  81,  81, 0.8, 0.7, 0.8,   
>   1.4,30.1,81.6,  458.7,  0.11848,  0,  1, 159, 159,  
>  0,1179
> total,   4993731,  67,  67,  67, 0.7, 0.7, 0.8,   
>   1.4, 3.2, 3.2,  488.1,  0.11860,  0,  0,   0,   0,  
>  0,   0
> total,   4996565,  45,  45,  45, 0.9, 0.7, 0.9,   
>   1.5,84.7,   218

[jira] [Comment Edited] (CASSANDRA-10887) Pending range calculator gives wrong pending ranges for moves

2015-12-18 Thread Philip Thompson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064508#comment-15064508
 ] 

Philip Thompson edited comment on CASSANDRA-10887 at 12/18/15 7:07 PM:
---

I've written up a dtest here: 
https://github.com/riptano/cassandra-dtest/pull/717 and pinged Branimir about 
it. I can't reproduce manually with Simon's steps or with my test on 2.1, 2.2, 
or 3.0. I've asked [~mambocab] to take a look as well.


was (Author: philipthompson):
I've written up a dtest here: 
https://github.com/riptano/cassandra-dtest/pull/717 and pinged Branimir about 
it. I can't reproduce manually with Simon's steps or with my test on 2.1, 2.2, 
or 3.0. I've asked Jim to take a look as well.

> Pending range calculator gives wrong pending ranges for moves
> -
>
> Key: CASSANDRA-10887
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10887
> Project: Cassandra
>  Issue Type: Bug
>  Components: Coordination
>Reporter: Richard Low
>Assignee: Branimir Lambov
>Priority: Critical
>
> My understanding is the PendingRangeCalculator is meant to calculate who 
> should receive extra writes during range movements. However, it adds the 
> wrong ranges for moves. An extreme example of this can be seen in the 
> following reproduction. Create a 5 node cluster (I did this on 2.0.16 and 
> 2.2.4) and a keyspace RF=3 and a simple table. Then start moving a node and 
> immediately kill -9 it. Now you see a node as down and moving in the ring. 
> Try a quorum write for a partition that is stored on that node - it will fail 
> with a timeout. Further, all CAS reads or writes fail immediately with 
> unavailable exception because they attempt to include the moving node twice. 
> This is likely to be the cause of CASSANDRA-10423.
> In my example I had this ring:
> 127.0.0.1  rack1   Up Normal  170.97 KB   20.00%  
> -9223372036854775808
> 127.0.0.2  rack1   Up Normal  124.06 KB   20.00%  
> -5534023222112865485
> 127.0.0.3  rack1   Down   Moving  108.7 KB40.00%  
> 1844674407370955160
> 127.0.0.4  rack1   Up Normal  142.58 KB   0.00%   
> 1844674407370955161
> 127.0.0.5  rack1   Up Normal  118.64 KB   20.00%  
> 5534023222112865484
> Node 3 was moving to -1844674407370955160. I added logging to print the 
> pending and natural endpoints. For ranges owned by node 3, node 3 appeared in 
> pending and natural endpoints. The blockFor is increased to 3 so we’re 
> effectively doing CL.ALL operations. This manifests as write timeouts and CAS 
> unavailables when the node is down.
> The correct pending range for this scenario is node 1 is gaining the range 
> (-1844674407370955160, 1844674407370955160). So node 1 should be added as a 
> destination for writes and CAS for this range, not node 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10887) Pending range calculator gives wrong pending ranges for moves

2015-12-18 Thread Philip Thompson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064508#comment-15064508
 ] 

Philip Thompson commented on CASSANDRA-10887:
-

I've written up a dtest here: 
https://github.com/riptano/cassandra-dtest/pull/717 and pinged Branimir about 
it. I can't reproduce manually with Simon's steps or with my test on 2.1, 2.2, 
or 3.0. I've asked Jim to take a look as well.

> Pending range calculator gives wrong pending ranges for moves
> -
>
> Key: CASSANDRA-10887
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10887
> Project: Cassandra
>  Issue Type: Bug
>  Components: Coordination
>Reporter: Richard Low
>Assignee: Branimir Lambov
>Priority: Critical
>
> My understanding is the PendingRangeCalculator is meant to calculate who 
> should receive extra writes during range movements. However, it adds the 
> wrong ranges for moves. An extreme example of this can be seen in the 
> following reproduction. Create a 5 node cluster (I did this on 2.0.16 and 
> 2.2.4) and a keyspace RF=3 and a simple table. Then start moving a node and 
> immediately kill -9 it. Now you see a node as down and moving in the ring. 
> Try a quorum write for a partition that is stored on that node - it will fail 
> with a timeout. Further, all CAS reads or writes fail immediately with 
> unavailable exception because they attempt to include the moving node twice. 
> This is likely to be the cause of CASSANDRA-10423.
> In my example I had this ring:
> 127.0.0.1  rack1   Up Normal  170.97 KB   20.00%  
> -9223372036854775808
> 127.0.0.2  rack1   Up Normal  124.06 KB   20.00%  
> -5534023222112865485
> 127.0.0.3  rack1   Down   Moving  108.7 KB40.00%  
> 1844674407370955160
> 127.0.0.4  rack1   Up Normal  142.58 KB   0.00%   
> 1844674407370955161
> 127.0.0.5  rack1   Up Normal  118.64 KB   20.00%  
> 5534023222112865484
> Node 3 was moving to -1844674407370955160. I added logging to print the 
> pending and natural endpoints. For ranges owned by node 3, node 3 appeared in 
> pending and natural endpoints. The blockFor is increased to 3 so we’re 
> effectively doing CL.ALL operations. This manifests as write timeouts and CAS 
> unavailables when the node is down.
> The correct pending range for this scenario is node 1 is gaining the range 
> (-1844674407370955160, 1844674407370955160). So node 1 should be added as a 
> destination for writes and CAS for this range, not node 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-9923) stress write and counter_write hangs

2015-12-18 Thread Robert Stupp (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064461#comment-15064461
 ] 

Robert Stupp commented on CASSANDRA-9923:
-

Yea, sure. You can pass JVM_OPTS. Was thinking of something like 
{{cassandra-stress -J-Xmx4G ...}}, which could also be used with cstar.

> stress write and counter_write hangs
> 
>
> Key: CASSANDRA-9923
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9923
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tools
>Reporter: Robert Stupp
>Assignee: T Jake Luciani
>Priority: Minor
>  Labels: stress
>
> (Sorry for the vague description)
> I tried some cstar tests against counter columns. But all these tests against 
> 2.1 and 2.2 ended (hang) during with the following output:
> {noformat}
> Created keyspaces. Sleeping 3s for propagation.
> Sleeping 2s...
> Warming up COUNTER_WRITE with 15 iterations...
> Running COUNTER_WRITE with 300 threads for 1500 iteration
> type,  total ops,op/s,pk/s,   row/s,mean, med, .95,   
>   .99,.999, max,   time,   stderr, errors,  gc: #,  max ms,  sum ms,  
> sdv ms,  mb
> total, 98073,   98054,   98054,   98054, 3.1, 1.7, 8.9,   
>  23.2,89.9,   107.7,1.0,  0.0,  0,  0,   0,   0,  
>  0,   0
> total,188586,   72492,   72492,   72492, 4.1, 1.5,10.0,   
>  61.4,   202.8,   214.7,2.2,  0.13101,  0,  3, 564, 564,  
>  6,3447
> total,363880,  137986,  137986,  137986, 2.2, 1.4, 4.1,   
>   9.6,   207.1,   253.3,3.5,  0.18684,  0,  0,   0,   0,  
>  0,   0
> total,460122,  105062,  105062,  105062, 2.8, 1.4, 4.6,   
>  14.7,   225.6,   236.2,4.4,  0.13969,  0,  1, 214, 214,  
>  0,1199
> total,600625,  111453,  111453,  111453, 2.7, 1.4, 3.8,   
>  10.4,   231.5,   241.6,5.7,  0.11366,  0,  2, 442, 442,  
>  1,2389
> total,745680,  149583,  149583,  149583, 2.0, 1.4, 3.6,   
>   6.7,   155.8,   159.7,6.7,  0.11318,  0,  0,   0,   0,  
>  0,   0
> total,828453,   63632,   63632,   63632, 4.7, 1.4, 4.8,   
> 261.9,   274.5,   279.3,8.0,  0.12645,  0,  3, 782, 782,  
>  1,3542
> total,   1009560,  172429,  172429,  172429, 1.7, 1.4, 3.7,   
>   6.1,16.2,29.7,9.0,  0.11629,  0,  0,   0,   0,  
>  0,   0
> total,   1062409,   53860,   53860,   53860, 5.5, 1.3, 8.6,   
> 270.3,   293.4,   324.3,   10.0,  0.12738,  0,  2, 542, 542,  
>  7,2354
> total,   1186672,   96540,   96540,   96540, 3.1, 1.5, 5.9,   
>  14.5,   266.4,   277.6,   11.3,  0.11451,  0,  1, 260, 260,  
>  0,1183
> {noformat}
> ...
> {noformat}
> total,   4977251, 238, 238, 238, 0.7, 0.6, 0.7,   
>   1.3, 3.4,   158.5,  352.3,  0.11749,  0,  0,   0,   0,  
>  0,   0
> total,   4979839, 214, 214, 214, 0.6, 0.6, 0.7,   
>   1.3, 2.5, 2.8,  364.4,  0.11761,  0,  0,   0,   0,  
>  0,   0
> total,   4981729, 191, 191, 191, 0.6, 0.6, 0.7,   
>   1.3, 3.2, 3.3,  374.3,  0.11774,  0,  0,   0,   0,  
>  0,   0
> total,   4983362, 167, 167, 167, 0.8, 0.7, 1.8,   
>   2.7, 3.9, 5.8,  384.0,  0.11787,  0,  0,   0,   0,  
>  0,   0
> total,   4985171, 153, 153, 153, 0.7, 0.6, 1.2,   
>   1.4, 2.0, 3.3,  395.9,  0.11799,  0,  0,   0,   0,  
>  0,   0
> total,   4986684, 137, 137, 137, 0.7, 0.6, 0.8,   
>   1.3, 2.0, 2.0,  406.9,  0.11812,  0,  0,   0,   0,  
>  0,   0
> total,   4988410, 121, 121, 121, 0.7, 0.7, 0.8,   
>   1.3, 2.0, 2.8,  421.1,  0.11824,  0,  0,   0,   0,  
>  0,   0
> total,   4990216,  99,  99,  99, 0.7, 0.7, 0.8,   
>   1.4, 2.6, 2.8,  439.5,  0.11836,  0,  0,   0,   0,  
>  0,   0
> total,   4991765,  81,  81,  81, 0.8, 0.7, 0.8,   
>   1.4,30.1,81.6,  458.7,  0.11848,  0,  1, 159, 159,  
>  0,1179
> total,   4993731,  67,  67,  67, 0.7, 0.7, 0.8,   
>   1.4, 3.2, 3.2,  488.1,  0.11860,  0,  0,   0,   0,  
>  0,

[jira] [Updated] (CASSANDRA-8708) inter_dc_stream_throughput_outbound_megabits_per_sec to defaults to unlimited

2015-12-18 Thread Jeremy Hanna (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-8708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeremy Hanna updated CASSANDRA-8708:

Attachment: 8708-2.1-jmx-nodetool-bulkloader-v2.txt

There were a couple of missing declarations in nodetool.  Those are fixed and I 
will run the dtests with this latest patch with a branch from my github.

> inter_dc_stream_throughput_outbound_megabits_per_sec to defaults to unlimited
> -
>
> Key: CASSANDRA-8708
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8708
> Project: Cassandra
>  Issue Type: Bug
>  Components: Streaming and Messaging
>Reporter: Adam Hattrell
>Assignee: Jeremy Hanna
> Fix For: 2.1.x, 2.2.x
>
> Attachments: 8708-2.1-jmx-nodetool-bulkloader-v2.txt, 
> 8708-2.1-jmx-nodetool-bulkloader.txt, 8708-2.1-with-jmx-nodetool.txt, 
> 8708-2.1.txt
>
>
> inter_dc_stream_throughput_outbound_megabits_per_sec was introduced in 
> CASSANDRA-6596.
> There's some discussion in the ticket of the intention to link the default to 
> whatever stream_throughput_outbound_megabits_per_sec is set to.  
> However, it looks like it's just set to 0 - from 
> /src/java/org/apache/cassandra/config/Config.java
> This is a bit of a pain - usually folks want to set the inter dc limits lower 
> than the base streaming figure.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10902) Skip saved cache directory when checking SSTables at startup

2015-12-18 Thread Carl Yeksigian (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064421#comment-15064421
 ] 

Carl Yeksigian commented on CASSANDRA-10902:


Pushed a branch which fixes this; I included the commitlog and hints 
directories (on 3.0+), even though they don't currently contain any .db files. 
I pushed [a dtest|https://github.com/carlyeks/cassandra-dtest/tree/10902] that 
demonstrates the problem.

||2.2||3.0||trunk||
|[branch|https://github.com/carlyeks/cassandra/tree/ticket/10902/2.2]|[branch|https://github.com/carlyeks/cassandra/tree/ticket/10902/3.0]|[branch|https://github.com/carlyeks/cassandra/tree/ticket/10902/trunk]|
|[utest|http://cassci.datastax.com/view/Dev/view/carlyeks/job/carlyeks-ticket-10902-2.2-testall/]|[utest|http://cassci.datastax.com/view/Dev/view/carlyeks/job/carlyeks-ticket-10902-3.0-testall/]|[utest|http://cassci.datastax.com/view/Dev/view/carlyeks/job/carlyeks-ticket-10902-trunk-testall/]|
|[dtest|http://cassci.datastax.com/view/Dev/view/carlyeks/job/carlyeks-ticket-10902-2.2-dtest/]|[dtest|http://cassci.datastax.com/view/Dev/view/carlyeks/job/carlyeks-ticket-10902-3.0-dtest/]|[dtest|http://cassci.datastax.com/view/Dev/view/carlyeks/job/carlyeks-ticket-10902-trunk-dtest/]|

> Skip saved cache directory when checking SSTables at startup
> 
>
> Key: CASSANDRA-10902
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10902
> Project: Cassandra
>  Issue Type: Bug
>  Components: Configuration
>Reporter: Carl Yeksigian
>Assignee: Carl Yeksigian
>
> The SSTable StartupCheck looks for all files which end with "*.db" and 
> compares the version. This causes problems if {{saved_cache_directory}} is a 
> subdirectory of a {{data_file_directories}}. We should make sure that we are 
> not checking any subdirectory where we might be writing *.db files.
> This is the cause of not being able to restart in CASSANDRA-10821.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-9428) Implement hints compression

2015-12-18 Thread Joshua McKenzie (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064411#comment-15064411
 ] 

Joshua McKenzie commented on CASSANDRA-9428:


Feedback:
* In {{CompressedChecksummedDataInput.reBufferStandard:L65}}, consider 
{{ICompressor.initialCompressedBufferLength}} rather than 5% allocation 
overhead.
* {{HintsWriter.bufferWrites}}: I'm not crazy about us having a volatile 
increment in the critical path that's only used in a testing context.
* In {{HintsCompressionTest.multiFlushAndDeserializeTest}}, bitshifting on init 
of {{bufferSize}} is unnecessary.
* Would prefer {{HintsCompressionTest}} to exercise all available compressor 
types as a matter of general hygiene.

Nits:
* extra space in yaml before new param
* extra space before closing brace in HintsWriter.create()
* unused imports in HintsCompressionTest
* some extra whitespace (doubled) in 
{{HintsCompressionTest.multiFlushAndDeserializeTest}}

I'm fine with both the caveats you mention above. Looking good so far!

> Implement hints compression
> ---
>
> Key: CASSANDRA-9428
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9428
> Project: Cassandra
>  Issue Type: Sub-task
>  Components: Coordination
>Reporter: Aleksey Yeschenko
>Assignee: Blake Eggleston
> Fix For: 3.0.x
>
>
> CASSANDRA-6230 is being implemented with compression in mind, but it's not 
> going to be implemented by the original ticket.
> Adding it on top should be relatively straight-forward, and important, since 
> there are several users in the wild that use compression interface for 
> encryption purposes. DSE is one of them (but isn't the only one). Losing 
> encryption capabilities would be a regression.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Comment Edited] (CASSANDRA-9923) stress write and counter_write hangs

2015-12-18 Thread T Jake Luciani (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064393#comment-15064393
 ] 

T Jake Luciani edited comment on CASSANDRA-9923 at 12/18/15 6:16 PM:
-

bq. WDYT

You can't change the -Xmx once the process starts


was (Author: tjake):
.bq WDYT

You can't change the -Xmx once the process starts

> stress write and counter_write hangs
> 
>
> Key: CASSANDRA-9923
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9923
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tools
>Reporter: Robert Stupp
>Assignee: T Jake Luciani
>Priority: Minor
>  Labels: stress
>
> (Sorry for the vague description)
> I tried some cstar tests against counter columns. But all these tests against 
> 2.1 and 2.2 ended (hang) during with the following output:
> {noformat}
> Created keyspaces. Sleeping 3s for propagation.
> Sleeping 2s...
> Warming up COUNTER_WRITE with 15 iterations...
> Running COUNTER_WRITE with 300 threads for 1500 iteration
> type,  total ops,op/s,pk/s,   row/s,mean, med, .95,   
>   .99,.999, max,   time,   stderr, errors,  gc: #,  max ms,  sum ms,  
> sdv ms,  mb
> total, 98073,   98054,   98054,   98054, 3.1, 1.7, 8.9,   
>  23.2,89.9,   107.7,1.0,  0.0,  0,  0,   0,   0,  
>  0,   0
> total,188586,   72492,   72492,   72492, 4.1, 1.5,10.0,   
>  61.4,   202.8,   214.7,2.2,  0.13101,  0,  3, 564, 564,  
>  6,3447
> total,363880,  137986,  137986,  137986, 2.2, 1.4, 4.1,   
>   9.6,   207.1,   253.3,3.5,  0.18684,  0,  0,   0,   0,  
>  0,   0
> total,460122,  105062,  105062,  105062, 2.8, 1.4, 4.6,   
>  14.7,   225.6,   236.2,4.4,  0.13969,  0,  1, 214, 214,  
>  0,1199
> total,600625,  111453,  111453,  111453, 2.7, 1.4, 3.8,   
>  10.4,   231.5,   241.6,5.7,  0.11366,  0,  2, 442, 442,  
>  1,2389
> total,745680,  149583,  149583,  149583, 2.0, 1.4, 3.6,   
>   6.7,   155.8,   159.7,6.7,  0.11318,  0,  0,   0,   0,  
>  0,   0
> total,828453,   63632,   63632,   63632, 4.7, 1.4, 4.8,   
> 261.9,   274.5,   279.3,8.0,  0.12645,  0,  3, 782, 782,  
>  1,3542
> total,   1009560,  172429,  172429,  172429, 1.7, 1.4, 3.7,   
>   6.1,16.2,29.7,9.0,  0.11629,  0,  0,   0,   0,  
>  0,   0
> total,   1062409,   53860,   53860,   53860, 5.5, 1.3, 8.6,   
> 270.3,   293.4,   324.3,   10.0,  0.12738,  0,  2, 542, 542,  
>  7,2354
> total,   1186672,   96540,   96540,   96540, 3.1, 1.5, 5.9,   
>  14.5,   266.4,   277.6,   11.3,  0.11451,  0,  1, 260, 260,  
>  0,1183
> {noformat}
> ...
> {noformat}
> total,   4977251, 238, 238, 238, 0.7, 0.6, 0.7,   
>   1.3, 3.4,   158.5,  352.3,  0.11749,  0,  0,   0,   0,  
>  0,   0
> total,   4979839, 214, 214, 214, 0.6, 0.6, 0.7,   
>   1.3, 2.5, 2.8,  364.4,  0.11761,  0,  0,   0,   0,  
>  0,   0
> total,   4981729, 191, 191, 191, 0.6, 0.6, 0.7,   
>   1.3, 3.2, 3.3,  374.3,  0.11774,  0,  0,   0,   0,  
>  0,   0
> total,   4983362, 167, 167, 167, 0.8, 0.7, 1.8,   
>   2.7, 3.9, 5.8,  384.0,  0.11787,  0,  0,   0,   0,  
>  0,   0
> total,   4985171, 153, 153, 153, 0.7, 0.6, 1.2,   
>   1.4, 2.0, 3.3,  395.9,  0.11799,  0,  0,   0,   0,  
>  0,   0
> total,   4986684, 137, 137, 137, 0.7, 0.6, 0.8,   
>   1.3, 2.0, 2.0,  406.9,  0.11812,  0,  0,   0,   0,  
>  0,   0
> total,   4988410, 121, 121, 121, 0.7, 0.7, 0.8,   
>   1.3, 2.0, 2.8,  421.1,  0.11824,  0,  0,   0,   0,  
>  0,   0
> total,   4990216,  99,  99,  99, 0.7, 0.7, 0.8,   
>   1.4, 2.6, 2.8,  439.5,  0.11836,  0,  0,   0,   0,  
>  0,   0
> total,   4991765,  81,  81,  81, 0.8, 0.7, 0.8,   
>   1.4,30.1,81.6,  458.7,  0.11848,  0,  1, 159, 159,  
>  0,1179
> total,   4993731,  67,  67,  67, 0.7, 0.7, 0.8,   
>   1.4, 3.2, 3.2,  48

[jira] [Commented] (CASSANDRA-9923) stress write and counter_write hangs

2015-12-18 Thread T Jake Luciani (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064393#comment-15064393
 ] 

T Jake Luciani commented on CASSANDRA-9923:
---

.bq WDYT

You can't change the -Xmx once the process starts

> stress write and counter_write hangs
> 
>
> Key: CASSANDRA-9923
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9923
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tools
>Reporter: Robert Stupp
>Assignee: T Jake Luciani
>Priority: Minor
>  Labels: stress
>
> (Sorry for the vague description)
> I tried some cstar tests against counter columns. But all these tests against 
> 2.1 and 2.2 ended (hang) during with the following output:
> {noformat}
> Created keyspaces. Sleeping 3s for propagation.
> Sleeping 2s...
> Warming up COUNTER_WRITE with 15 iterations...
> Running COUNTER_WRITE with 300 threads for 1500 iteration
> type,  total ops,op/s,pk/s,   row/s,mean, med, .95,   
>   .99,.999, max,   time,   stderr, errors,  gc: #,  max ms,  sum ms,  
> sdv ms,  mb
> total, 98073,   98054,   98054,   98054, 3.1, 1.7, 8.9,   
>  23.2,89.9,   107.7,1.0,  0.0,  0,  0,   0,   0,  
>  0,   0
> total,188586,   72492,   72492,   72492, 4.1, 1.5,10.0,   
>  61.4,   202.8,   214.7,2.2,  0.13101,  0,  3, 564, 564,  
>  6,3447
> total,363880,  137986,  137986,  137986, 2.2, 1.4, 4.1,   
>   9.6,   207.1,   253.3,3.5,  0.18684,  0,  0,   0,   0,  
>  0,   0
> total,460122,  105062,  105062,  105062, 2.8, 1.4, 4.6,   
>  14.7,   225.6,   236.2,4.4,  0.13969,  0,  1, 214, 214,  
>  0,1199
> total,600625,  111453,  111453,  111453, 2.7, 1.4, 3.8,   
>  10.4,   231.5,   241.6,5.7,  0.11366,  0,  2, 442, 442,  
>  1,2389
> total,745680,  149583,  149583,  149583, 2.0, 1.4, 3.6,   
>   6.7,   155.8,   159.7,6.7,  0.11318,  0,  0,   0,   0,  
>  0,   0
> total,828453,   63632,   63632,   63632, 4.7, 1.4, 4.8,   
> 261.9,   274.5,   279.3,8.0,  0.12645,  0,  3, 782, 782,  
>  1,3542
> total,   1009560,  172429,  172429,  172429, 1.7, 1.4, 3.7,   
>   6.1,16.2,29.7,9.0,  0.11629,  0,  0,   0,   0,  
>  0,   0
> total,   1062409,   53860,   53860,   53860, 5.5, 1.3, 8.6,   
> 270.3,   293.4,   324.3,   10.0,  0.12738,  0,  2, 542, 542,  
>  7,2354
> total,   1186672,   96540,   96540,   96540, 3.1, 1.5, 5.9,   
>  14.5,   266.4,   277.6,   11.3,  0.11451,  0,  1, 260, 260,  
>  0,1183
> {noformat}
> ...
> {noformat}
> total,   4977251, 238, 238, 238, 0.7, 0.6, 0.7,   
>   1.3, 3.4,   158.5,  352.3,  0.11749,  0,  0,   0,   0,  
>  0,   0
> total,   4979839, 214, 214, 214, 0.6, 0.6, 0.7,   
>   1.3, 2.5, 2.8,  364.4,  0.11761,  0,  0,   0,   0,  
>  0,   0
> total,   4981729, 191, 191, 191, 0.6, 0.6, 0.7,   
>   1.3, 3.2, 3.3,  374.3,  0.11774,  0,  0,   0,   0,  
>  0,   0
> total,   4983362, 167, 167, 167, 0.8, 0.7, 1.8,   
>   2.7, 3.9, 5.8,  384.0,  0.11787,  0,  0,   0,   0,  
>  0,   0
> total,   4985171, 153, 153, 153, 0.7, 0.6, 1.2,   
>   1.4, 2.0, 3.3,  395.9,  0.11799,  0,  0,   0,   0,  
>  0,   0
> total,   4986684, 137, 137, 137, 0.7, 0.6, 0.8,   
>   1.3, 2.0, 2.0,  406.9,  0.11812,  0,  0,   0,   0,  
>  0,   0
> total,   4988410, 121, 121, 121, 0.7, 0.7, 0.8,   
>   1.3, 2.0, 2.8,  421.1,  0.11824,  0,  0,   0,   0,  
>  0,   0
> total,   4990216,  99,  99,  99, 0.7, 0.7, 0.8,   
>   1.4, 2.6, 2.8,  439.5,  0.11836,  0,  0,   0,   0,  
>  0,   0
> total,   4991765,  81,  81,  81, 0.8, 0.7, 0.8,   
>   1.4,30.1,81.6,  458.7,  0.11848,  0,  1, 159, 159,  
>  0,1179
> total,   4993731,  67,  67,  67, 0.7, 0.7, 0.8,   
>   1.4, 3.2, 3.2,  488.1,  0.11860,  0,  0,   0,   0,  
>  0,   0
> total,   4996565,  45,  45,  45, 0.9, 0

[jira] [Commented] (CASSANDRA-10829) cleanup + repair generates a lot of logs

2015-12-18 Thread Carl Yeksigian (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064320#comment-15064320
 ] 

Carl Yeksigian commented on CASSANDRA-10829:


We need to ensure we only {{unmarkCompacting}} the sstables which we haven't 
already unmarked, otherwise we could be running a different compaction 
operation on the previously unmarked sstables and unmark it again after this 
operation is finished.

> cleanup + repair generates a lot of logs
> 
>
> Key: CASSANDRA-10829
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10829
> Project: Cassandra
>  Issue Type: Bug
> Environment: 5 nodes on Cassandra 2.1.11 (on Debian)
>Reporter: Fabien Rousseau
>Assignee: Marcus Eriksson
> Fix For: 2.1.x
>
>
> One of our node generates a lot of cassandra logs (int the 10 MB/s) and CPU 
> usage has increased (by a factor 2-3).
> This was most probably triggered by a "nodetool snapshot" while a cleanup was 
> already running on this node.
> An example of those logs:
> 2015-12-08 09:15:17,794 INFO  
> [ValidationExecutor:689]ColumnFamilyStore.java:1923 Spinning trying to 
> capture released readers [...]
> 2015-12-08 09:15:17,794 INFO  
> [ValidationExecutor:689]ColumnFamilyStore.java:1924 Spinning trying to 
> capture all readers [...]
> 2015-12-08 09:15:17,795 INFO  
> [ValidationExecutor:689]ColumnFamilyStore.java:1923 Spinning trying to 
> capture released readers [...]
> 2015-12-08 09:15:17,795 INFO  
> [ValidationExecutor:689]ColumnFamilyStore.java:1924 Spinning trying to 
> capture all readers [...]
> (I removed SSTableReader information because it's rather long... I can share 
> it privately if needed)
> Note that the date has not been changed (only 1ms between logs)
> It should not generate that gigantic amount of logs :)
> This is probably linked to: 
> https://issues.apache.org/jira/browse/CASSANDRA-9637



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10784) ZonedDateTime as new CQL data type

2015-12-18 Thread Carl Yeksigian (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064261#comment-15064261
 ] 

Carl Yeksigian commented on CASSANDRA-10784:


I'm -1 on including a type like this.

There is no way to just compare by the UTC time in a partition key; we use the 
bytes of the full value, so it wouldn't resolve correctly. Because we can't 
drop the zone from the partition key, a query would also require the time zone 
to be incorporated, and we the two values wouldn't be on the same node, so they 
would both exist. This behavior would preclude ZonedDateTime from being 
included in Cassandra.

There are other ways to get the desired behavior. The best would be to split 
the zone out into a new column; it would need to be a static column for the 
primary key, and a regular column for the clustering key. A UDT would get you 
the same behavior as is described in the previous paragraph. And if you wanted 
to add a new data type for use with clustering columns, you can implement the 
{{AbstractType}} and deploy it in a jar alongside your Cassandra.

> ZonedDateTime as new CQL data type
> --
>
> Key: CASSANDRA-10784
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10784
> Project: Cassandra
>  Issue Type: New Feature
>  Components: CQL, Documentation and Website
>Reporter: ZhaoYang
>Assignee: ZhaoYang
> Fix For: 3.x
>
>
> For globalization, ZonedDateTime is very important. Timestamp is not enough 
> and Zone info should be included. So Cassandra should support ZonedDateTime 
> as native data type and ordering using ZonedDateTime's utc value.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-9977) Support counter-columns for native aggregates (sum,avg,max,min)

2015-12-18 Thread Robert Stupp (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064257#comment-15064257
 ] 

Robert Stupp commented on CASSANDRA-9977:
-

Fair enough. Will change it to {{counter}} type in the branch.

> Support counter-columns for native aggregates (sum,avg,max,min)
> ---
>
> Key: CASSANDRA-9977
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9977
> Project: Cassandra
>  Issue Type: Improvement
>  Components: CQL
>Reporter: Noam Liran
>Assignee: Robert Stupp
> Fix For: 2.2.x
>
>
> When trying to SUM a column of type COUNTER, this error is returned:
> {noformat}
> InvalidRequest: code=2200 [Invalid query] message="Invalid call to function 
> sum, none of its type signatures match (known type signatures: system.sum : 
> (tinyint) -> tinyint, system.sum : (smallint) -> smallint, system.sum : (int) 
> -> int, system.sum : (bigint) -> bigint, system.sum : (float) -> float, 
> system.sum : (double) -> double, system.sum : (decimal) -> decimal, 
> system.sum : (varint) -> varint)"
> {noformat}
> This might be relevant for other agg. functions.
> CQL for reproduction:
> {noformat}
> CREATE TABLE test (
> key INT,
> ctr COUNTER,
> PRIMARY KEY (
> key
> )
> );
> UPDATE test SET ctr = ctr + 1 WHERE key = 1;
> SELECT SUM(ctr) FROM test;
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-9923) stress write and counter_write hangs

2015-12-18 Thread Robert Stupp (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064255#comment-15064255
 ] 

Robert Stupp commented on CASSANDRA-9923:
-

bq. Mainly stress is running low on heap.
Makes sense to me.

Maybe just add a "generic" {{-Jfoo}} option to pass JVM arguments to stress. 
WDYT?

> stress write and counter_write hangs
> 
>
> Key: CASSANDRA-9923
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9923
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tools
>Reporter: Robert Stupp
>Assignee: T Jake Luciani
>Priority: Minor
>  Labels: stress
>
> (Sorry for the vague description)
> I tried some cstar tests against counter columns. But all these tests against 
> 2.1 and 2.2 ended (hang) during with the following output:
> {noformat}
> Created keyspaces. Sleeping 3s for propagation.
> Sleeping 2s...
> Warming up COUNTER_WRITE with 15 iterations...
> Running COUNTER_WRITE with 300 threads for 1500 iteration
> type,  total ops,op/s,pk/s,   row/s,mean, med, .95,   
>   .99,.999, max,   time,   stderr, errors,  gc: #,  max ms,  sum ms,  
> sdv ms,  mb
> total, 98073,   98054,   98054,   98054, 3.1, 1.7, 8.9,   
>  23.2,89.9,   107.7,1.0,  0.0,  0,  0,   0,   0,  
>  0,   0
> total,188586,   72492,   72492,   72492, 4.1, 1.5,10.0,   
>  61.4,   202.8,   214.7,2.2,  0.13101,  0,  3, 564, 564,  
>  6,3447
> total,363880,  137986,  137986,  137986, 2.2, 1.4, 4.1,   
>   9.6,   207.1,   253.3,3.5,  0.18684,  0,  0,   0,   0,  
>  0,   0
> total,460122,  105062,  105062,  105062, 2.8, 1.4, 4.6,   
>  14.7,   225.6,   236.2,4.4,  0.13969,  0,  1, 214, 214,  
>  0,1199
> total,600625,  111453,  111453,  111453, 2.7, 1.4, 3.8,   
>  10.4,   231.5,   241.6,5.7,  0.11366,  0,  2, 442, 442,  
>  1,2389
> total,745680,  149583,  149583,  149583, 2.0, 1.4, 3.6,   
>   6.7,   155.8,   159.7,6.7,  0.11318,  0,  0,   0,   0,  
>  0,   0
> total,828453,   63632,   63632,   63632, 4.7, 1.4, 4.8,   
> 261.9,   274.5,   279.3,8.0,  0.12645,  0,  3, 782, 782,  
>  1,3542
> total,   1009560,  172429,  172429,  172429, 1.7, 1.4, 3.7,   
>   6.1,16.2,29.7,9.0,  0.11629,  0,  0,   0,   0,  
>  0,   0
> total,   1062409,   53860,   53860,   53860, 5.5, 1.3, 8.6,   
> 270.3,   293.4,   324.3,   10.0,  0.12738,  0,  2, 542, 542,  
>  7,2354
> total,   1186672,   96540,   96540,   96540, 3.1, 1.5, 5.9,   
>  14.5,   266.4,   277.6,   11.3,  0.11451,  0,  1, 260, 260,  
>  0,1183
> {noformat}
> ...
> {noformat}
> total,   4977251, 238, 238, 238, 0.7, 0.6, 0.7,   
>   1.3, 3.4,   158.5,  352.3,  0.11749,  0,  0,   0,   0,  
>  0,   0
> total,   4979839, 214, 214, 214, 0.6, 0.6, 0.7,   
>   1.3, 2.5, 2.8,  364.4,  0.11761,  0,  0,   0,   0,  
>  0,   0
> total,   4981729, 191, 191, 191, 0.6, 0.6, 0.7,   
>   1.3, 3.2, 3.3,  374.3,  0.11774,  0,  0,   0,   0,  
>  0,   0
> total,   4983362, 167, 167, 167, 0.8, 0.7, 1.8,   
>   2.7, 3.9, 5.8,  384.0,  0.11787,  0,  0,   0,   0,  
>  0,   0
> total,   4985171, 153, 153, 153, 0.7, 0.6, 1.2,   
>   1.4, 2.0, 3.3,  395.9,  0.11799,  0,  0,   0,   0,  
>  0,   0
> total,   4986684, 137, 137, 137, 0.7, 0.6, 0.8,   
>   1.3, 2.0, 2.0,  406.9,  0.11812,  0,  0,   0,   0,  
>  0,   0
> total,   4988410, 121, 121, 121, 0.7, 0.7, 0.8,   
>   1.3, 2.0, 2.8,  421.1,  0.11824,  0,  0,   0,   0,  
>  0,   0
> total,   4990216,  99,  99,  99, 0.7, 0.7, 0.8,   
>   1.4, 2.6, 2.8,  439.5,  0.11836,  0,  0,   0,   0,  
>  0,   0
> total,   4991765,  81,  81,  81, 0.8, 0.7, 0.8,   
>   1.4,30.1,81.6,  458.7,  0.11848,  0,  1, 159, 159,  
>  0,1179
> total,   4993731,  67,  67,  67, 0.7, 0.7, 0.8,   
>   1.4, 3.2, 3.2,  488.1,  0.11860,  0,  0,   0,   0,  
>

cassandra git commit: Minor code improvements

2015-12-18 Thread snazy
Repository: cassandra
Updated Branches:
  refs/heads/trunk a0f59dce5 -> 0f5e78078


Minor code improvements

patch by Robert Stupp; reviewed by Stefania for CASSANDRA-10750


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/0f5e7807
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/0f5e7807
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/0f5e7807

Branch: refs/heads/trunk
Commit: 0f5e780781ce3f0cb3732515dacc7e467571a7c9
Parents: a0f59dc
Author: Robert Stupp 
Authored: Fri Dec 18 09:14:57 2015 -0800
Committer: Robert Stupp 
Committed: Fri Dec 18 09:14:57 2015 -0800

--
 .../cassandra/auth/PasswordAuthenticator.java   |   4 +-
 .../org/apache/cassandra/cql3/CQL3Type.java |   5 -
 .../restrictions/PrimaryKeyRestrictionSet.java  |  12 --
 .../cassandra/cql3/selection/FieldSelector.java |   5 -
 .../cql3/statements/BatchStatement.java |  13 +-
 .../cql3/statements/ModificationStatement.java  |   9 +-
 .../apache/cassandra/db/CounterMutation.java|   7 +-
 src/java/org/apache/cassandra/db/IMutation.java |   2 +-
 .../org/apache/cassandra/db/LegacyLayout.java   |  18 +--
 src/java/org/apache/cassandra/db/Mutation.java  |   7 +-
 .../cassandra/db/UnfilteredDeserializer.java|   2 +-
 .../db/commitlog/CommitLogReplayer.java |   2 +-
 .../db/compaction/CompactionController.java |   5 +-
 .../UnfilteredPartitionIterators.java   |   6 -
 .../apache/cassandra/db/transform/Stack.java|   6 +-
 src/java/org/apache/cassandra/dht/Range.java|   8 +-
 .../internal/composites/CompositesSearcher.java | 122 +--
 .../io/sstable/SSTableSimpleIterator.java   |  33 ++---
 .../io/sstable/format/SSTableReader.java|   2 +-
 .../io/util/FileSegmentInputStream.java |   6 -
 .../io/util/RebufferingInputStream.java |  12 --
 .../locator/NetworkTopologyStrategy.java|   6 -
 .../apache/cassandra/metrics/TableMetrics.java  |   5 +-
 .../cassandra/serializers/AsciiSerializer.java  |   2 +-
 .../cassandra/serializers/UTF8Serializer.java   |   4 +-
 .../apache/cassandra/service/CacheService.java  |   6 +-
 .../apache/cassandra/service/StorageProxy.java  |   2 +-
 .../apache/cassandra/streaming/StreamPlan.java  |   5 +-
 .../apache/cassandra/tools/nodetool/Ring.java   |   4 +-
 .../apache/cassandra/tools/nodetool/Status.java |   4 +-
 .../cassandra/utils/HistogramBuilder.java   |   7 +-
 .../apache/cassandra/utils/IntervalTree.java|  23 ++--
 .../apache/cassandra/utils/MergeIterator.java   |   3 -
 .../org/apache/cassandra/utils/MerkleTree.java  |  84 -
 .../cassandra/utils/btree/TreeCursor.java   |   3 +-
 .../org/apache/cassandra/stress/Operation.java  |  10 +-
 .../operations/predefined/CqlOperation.java |   9 +-
 .../predefined/PredefinedOperation.java |   3 +-
 .../operations/userdefined/SchemaStatement.java |   9 --
 .../userdefined/ValidatingSchemaQuery.java  |  17 +--
 .../cassandra/stress/util/TimingInterval.java   |   3 +-
 41 files changed, 223 insertions(+), 272 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0f5e7807/src/java/org/apache/cassandra/auth/PasswordAuthenticator.java
--
diff --git a/src/java/org/apache/cassandra/auth/PasswordAuthenticator.java 
b/src/java/org/apache/cassandra/auth/PasswordAuthenticator.java
index 0482199..3bee0e3 100644
--- a/src/java/org/apache/cassandra/auth/PasswordAuthenticator.java
+++ b/src/java/org/apache/cassandra/auth/PasswordAuthenticator.java
@@ -213,10 +213,10 @@ public class PasswordAuthenticator implements 
IAuthenticator
 }
 }
 
-if (user == null)
-throw new AuthenticationException("Authentication ID must not 
be null");
 if (pass == null)
 throw new AuthenticationException("Password must not be null");
+if (user == null)
+throw new AuthenticationException("Authentication ID must not 
be null");
 
 username = new String(user, StandardCharsets.UTF_8);
 password = new String(pass, StandardCharsets.UTF_8);

http://git-wip-us.apache.org/repos/asf/cassandra/blob/0f5e7807/src/java/org/apache/cassandra/cql3/CQL3Type.java
--
diff --git a/src/java/org/apache/cassandra/cql3/CQL3Type.java 
b/src/java/org/apache/cassandra/cql3/CQL3Type.java
index 4e67346..989fcf8 100644
--- a/src/java/org/apache/cassandra/cql3/CQL3Type.java
+++ b/src/java/org/apache/cassandra/cql3/CQL3Type.java
@@ -815,11 +815,6 @@ public interface CQL3Type
 return true;
 }
 
-public boolean isCollection()
-{
-re

[jira] [Updated] (CASSANDRA-10657) Re-enable/improve value skipping

2015-12-18 Thread Aleksey Yeschenko (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Yeschenko updated CASSANDRA-10657:
--
Fix Version/s: (was: 3.2)
   3.x

> Re-enable/improve value skipping
> 
>
> Key: CASSANDRA-10657
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10657
> Project: Cassandra
>  Issue Type: Improvement
>Reporter: Sylvain Lebresne
>Assignee: Sylvain Lebresne
> Fix For: 3.x
>
>
> This is a followup to CASSANDRA-10655, to re-enable the optimization of 
> skipping values for the columns that are not requested by users in a CQL 
> query. See CASSANDRA-10655 for why it was disabled, the goal here is to 
> re-enable it minus the bugs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (CASSANDRA-10712) Performance dramatically impacted by using client SSL

2015-12-18 Thread Aleksey Yeschenko (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Yeschenko resolved CASSANDRA-10712.
---
   Resolution: Duplicate
Reproduced In: 3.0.0, 2.1.11, 2.0.17  (was: 2.0.17, 2.1.11, 3.0.0)

> Performance dramatically impacted by using client SSL
> -
>
> Key: CASSANDRA-10712
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10712
> Project: Cassandra
>  Issue Type: Improvement
>Reporter: Andy Tolbert
> Attachments: bench-graph.png, cpu_metrics.png, ssl-bench.tgz
>
>
> Throughput latency & throughput achieved via cassandra-stress is dramatically 
> impacted when using SSL (about 5-6x).
> !bench-graph.png!
> I haven't done much analysis of this yet, but one observation is that I do 
> notice a dramatic increase in context switches while running with SSL on the 
> server side.  In the charts below, the left-most data in a chart represents 
> running without SSL, and the right-most data represents running with SSL.  
> You'll observe that on the C* node that while the CPU utilization is down 
> when running stress with SSL, the context switches are higher.
> !cpu_metrics.png!
> Attached is [^ssl-bench.tgz] that includes output for each run, the 
> parameters used and an html file that is the output of running stress with 
> [CASSANDRA-7918].
> If you need some ready made keystore / truststore files to work with, some 
> can be found 
> [here|https://github.com/datastax/java-driver/tree/2.1/driver-core/src/test/resources].



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10714) tcp retransmission issue seen in cassandra cluster

2015-12-18 Thread Aleksey Yeschenko (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Yeschenko updated CASSANDRA-10714:
--
Issue Type: Bug  (was: Improvement)

> tcp retransmission issue seen in cassandra cluster
> --
>
> Key: CASSANDRA-10714
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10714
> Project: Cassandra
>  Issue Type: Bug
>  Components: Streaming and Messaging
>Reporter: Jeff Liu
>
> I have been seen tcp package retransmission issue in various stacks in our 
> environment. ( AWS with no VPC). I'm currently using hsha rpc server type on 
> cassandra 2.1.6 version. The information captured by wireshark shows that the 
> retransmission happened both between client-to-server and server-to-server. 
> Even within a cluster that doesn't have any client traffic, sporadic 
> retransmission still happens.
> It's pretty easy to reproduce this issue by watching "netstat -s | grep 
> retrans". 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (CASSANDRA-10723) Rewrite INITCOND after renames and alters of UDT fields

2015-12-18 Thread Aleksey Yeschenko (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Yeschenko resolved CASSANDRA-10723.
---
   Resolution: Later
Fix Version/s: (was: 3.x)

> Rewrite INITCOND after renames and alters of UDT fields
> ---
>
> Key: CASSANDRA-10723
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10723
> Project: Cassandra
>  Issue Type: Improvement
>Reporter: Robert Stupp
>Priority: Minor
>
> (Follow-up to CASSANDRA-10721)
> In order to re-write an INITCOND value when a UDT is changed (component 
> renamed or type altered), we will have to check for broken aggregates first 
> (as we do not know why _exactly_ these are broken; CASSANDRA-10721 added 
> {{Function.isBroken()}}).
> If one of the affected aggregates is broken, the request *must fail*.
> If none of the affected aggregates is broken, we can re-write the binary 
> representation of the INITCOND and push schema migrations for these 
> aggregates.
> Still unclear, if the user needs permissions on both the UDT _and_ the 
> affected UDAs for that.
> Further, the UDT change and all UDA changes should be migrated in a single 
> mutation, which feels to be the biggest change. This is not a strict 
> requirement but would keep that schema change atomic.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-12-18 Thread Joshua McKenzie (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joshua McKenzie updated CASSANDRA-10733:

Reviewer: Tyler Hobbs

> Inconsistencies in CQLSH auto-complete
> --
>
> Key: CASSANDRA-10733
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
> Project: Cassandra
>  Issue Type: Bug
>  Components: CQL, Tools
>Reporter: Michael Edge
>Assignee: Michael Edge
>Priority: Trivial
>  Labels: cqlsh, lhf
> Fix For: 2.1.x, 2.2.x, 3.x
>
> Attachments: CASSANDRA-2.2-10733-CQLSH-Auto.patch, 
> CASSANDRA-3.0-10733-CQLSH-Auto.patch
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table '}}, {{'desc function '}} and {{'desc type '}} 
> works correctly. We see a list of all tables (or functions, types) in the 
> current keyspace plus a list of all available keyspaces followed by a full 
> stop (e.g. system.)
> {code}
> cqlsh:fxaggr> desc TABLE 
>  minutedata   system_distributed.
> ;rawtickdatabylp  system_traces.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'desc aggregate '}} displays the aggregates in the current keyspace (in 
> this case, only 1, called 'average') but does not display a list of available 
> keyspaces. It only displays the current keyspace, with no following full stop.
> {code}
> cqlsh:fxaggr> desc aggregate 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} works correctly. We see a list of all tables (or types) in the 
> current keyspace
> {code}
> cqlsh:fxaggr> desc table fxaggr.
> daydata  rawtickdatabylp  tickdata
> minutedata   rawtickdatabysymbol  
> {code}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> and hit tab, auto-complete will result in this: {{'desc function fxaggr.avg 
> '}} and will not display the matching functions. If I type {{'desc function 
> .'}} (note the trailing full stop) and hit tab, auto-complete will 
> work correctly:
> {code}
> cqlsh:fxaggr> desc function fxaggr.avg
> avgfinal  avgstate  
> {code}
> If I type {{'desc aggregate '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10879) HSHA dtest for closing connections almost always fails on CASSCI developer branches

2015-12-18 Thread Carl Yeksigian (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064185#comment-15064185
 ] 

Carl Yeksigian commented on CASSANDRA-10879:


I'm running the fix that I have in CASSANDRA-10863 through 
[2.1|http://cassci.datastax.com/view/Dev/view/carlyeks/job/carlyeks-ticket-10863-2.1-dtest/]
 and 
[2.2|http://cassci.datastax.com/view/Dev/view/carlyeks/job/carlyeks-ticket-10863-2.2-dtest/]
 now.

> HSHA dtest for closing connections almost always fails on CASSCI developer 
> branches
> ---
>
> Key: CASSANDRA-10879
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10879
> Project: Cassandra
>  Issue Type: Bug
>  Components: Testing
>Reporter: Branimir Lambov
>Assignee: Carl Yeksigian
>Priority: Critical
>
> The test consistently succeeds on 2.1/2.2 branches, but has been failing 
> almost every time on developer ones for quite a while, for example [9258 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-dikang85-9258-dtest/lastCompletedBuild/testReport/],
>  [10817 
> dtest|http://cassci.datastax.com/view/Dev/view/krummas/job/krummas-marcuse-10817-dtest/],
>  [10059 (committed) 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-10059-dtest/lastCompletedBuild/testReport/],
>  [unchanged 2.2 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-cassandra-2.2-dtest/lastCompletedBuild/testReport/]
>  and many others. The failures cannot be genuine if the same code committed 
> to the main branch no longer fails the test.
> This is making it hard to identify genuine failures and blocking 
> CASSANDRA-9669 in particular.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-12-18 Thread Aleksey Yeschenko (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Yeschenko updated CASSANDRA-10733:
--
Issue Type: Bug  (was: Improvement)

> Inconsistencies in CQLSH auto-complete
> --
>
> Key: CASSANDRA-10733
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
> Project: Cassandra
>  Issue Type: Bug
>  Components: CQL, Tools
>Reporter: Michael Edge
>Assignee: Michael Edge
>Priority: Trivial
>  Labels: cqlsh, lhf
> Fix For: 2.1.x, 2.2.x, 3.x
>
> Attachments: CASSANDRA-2.2-10733-CQLSH-Auto.patch, 
> CASSANDRA-3.0-10733-CQLSH-Auto.patch
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table '}}, {{'desc function '}} and {{'desc type '}} 
> works correctly. We see a list of all tables (or functions, types) in the 
> current keyspace plus a list of all available keyspaces followed by a full 
> stop (e.g. system.)
> {code}
> cqlsh:fxaggr> desc TABLE 
>  minutedata   system_distributed.
> ;rawtickdatabylp  system_traces.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'desc aggregate '}} displays the aggregates in the current keyspace (in 
> this case, only 1, called 'average') but does not display a list of available 
> keyspaces. It only displays the current keyspace, with no following full stop.
> {code}
> cqlsh:fxaggr> desc aggregate 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} works correctly. We see a list of all tables (or types) in the 
> current keyspace
> {code}
> cqlsh:fxaggr> desc table fxaggr.
> daydata  rawtickdatabylp  tickdata
> minutedata   rawtickdatabysymbol  
> {code}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> and hit tab, auto-complete will result in this: {{'desc function fxaggr.avg 
> '}} and will not display the matching functions. If I type {{'desc function 
> .'}} (note the trailing full stop) and hit tab, auto-complete will 
> work correctly:
> {code}
> cqlsh:fxaggr> desc function fxaggr.avg
> avgfinal  avgstate  
> {code}
> If I type {{'desc aggregate '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-9923) stress write and counter_write hangs

2015-12-18 Thread T Jake Luciani (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-9923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

T Jake Luciani updated CASSANDRA-9923:
--
Component/s: Tools

> stress write and counter_write hangs
> 
>
> Key: CASSANDRA-9923
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9923
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tools
>Reporter: Robert Stupp
>Assignee: T Jake Luciani
>Priority: Minor
>  Labels: stress
>
> (Sorry for the vague description)
> I tried some cstar tests against counter columns. But all these tests against 
> 2.1 and 2.2 ended (hang) during with the following output:
> {noformat}
> Created keyspaces. Sleeping 3s for propagation.
> Sleeping 2s...
> Warming up COUNTER_WRITE with 15 iterations...
> Running COUNTER_WRITE with 300 threads for 1500 iteration
> type,  total ops,op/s,pk/s,   row/s,mean, med, .95,   
>   .99,.999, max,   time,   stderr, errors,  gc: #,  max ms,  sum ms,  
> sdv ms,  mb
> total, 98073,   98054,   98054,   98054, 3.1, 1.7, 8.9,   
>  23.2,89.9,   107.7,1.0,  0.0,  0,  0,   0,   0,  
>  0,   0
> total,188586,   72492,   72492,   72492, 4.1, 1.5,10.0,   
>  61.4,   202.8,   214.7,2.2,  0.13101,  0,  3, 564, 564,  
>  6,3447
> total,363880,  137986,  137986,  137986, 2.2, 1.4, 4.1,   
>   9.6,   207.1,   253.3,3.5,  0.18684,  0,  0,   0,   0,  
>  0,   0
> total,460122,  105062,  105062,  105062, 2.8, 1.4, 4.6,   
>  14.7,   225.6,   236.2,4.4,  0.13969,  0,  1, 214, 214,  
>  0,1199
> total,600625,  111453,  111453,  111453, 2.7, 1.4, 3.8,   
>  10.4,   231.5,   241.6,5.7,  0.11366,  0,  2, 442, 442,  
>  1,2389
> total,745680,  149583,  149583,  149583, 2.0, 1.4, 3.6,   
>   6.7,   155.8,   159.7,6.7,  0.11318,  0,  0,   0,   0,  
>  0,   0
> total,828453,   63632,   63632,   63632, 4.7, 1.4, 4.8,   
> 261.9,   274.5,   279.3,8.0,  0.12645,  0,  3, 782, 782,  
>  1,3542
> total,   1009560,  172429,  172429,  172429, 1.7, 1.4, 3.7,   
>   6.1,16.2,29.7,9.0,  0.11629,  0,  0,   0,   0,  
>  0,   0
> total,   1062409,   53860,   53860,   53860, 5.5, 1.3, 8.6,   
> 270.3,   293.4,   324.3,   10.0,  0.12738,  0,  2, 542, 542,  
>  7,2354
> total,   1186672,   96540,   96540,   96540, 3.1, 1.5, 5.9,   
>  14.5,   266.4,   277.6,   11.3,  0.11451,  0,  1, 260, 260,  
>  0,1183
> {noformat}
> ...
> {noformat}
> total,   4977251, 238, 238, 238, 0.7, 0.6, 0.7,   
>   1.3, 3.4,   158.5,  352.3,  0.11749,  0,  0,   0,   0,  
>  0,   0
> total,   4979839, 214, 214, 214, 0.6, 0.6, 0.7,   
>   1.3, 2.5, 2.8,  364.4,  0.11761,  0,  0,   0,   0,  
>  0,   0
> total,   4981729, 191, 191, 191, 0.6, 0.6, 0.7,   
>   1.3, 3.2, 3.3,  374.3,  0.11774,  0,  0,   0,   0,  
>  0,   0
> total,   4983362, 167, 167, 167, 0.8, 0.7, 1.8,   
>   2.7, 3.9, 5.8,  384.0,  0.11787,  0,  0,   0,   0,  
>  0,   0
> total,   4985171, 153, 153, 153, 0.7, 0.6, 1.2,   
>   1.4, 2.0, 3.3,  395.9,  0.11799,  0,  0,   0,   0,  
>  0,   0
> total,   4986684, 137, 137, 137, 0.7, 0.6, 0.8,   
>   1.3, 2.0, 2.0,  406.9,  0.11812,  0,  0,   0,   0,  
>  0,   0
> total,   4988410, 121, 121, 121, 0.7, 0.7, 0.8,   
>   1.3, 2.0, 2.8,  421.1,  0.11824,  0,  0,   0,   0,  
>  0,   0
> total,   4990216,  99,  99,  99, 0.7, 0.7, 0.8,   
>   1.4, 2.6, 2.8,  439.5,  0.11836,  0,  0,   0,   0,  
>  0,   0
> total,   4991765,  81,  81,  81, 0.8, 0.7, 0.8,   
>   1.4,30.1,81.6,  458.7,  0.11848,  0,  1, 159, 159,  
>  0,1179
> total,   4993731,  67,  67,  67, 0.7, 0.7, 0.8,   
>   1.4, 3.2, 3.2,  488.1,  0.11860,  0,  0,   0,   0,  
>  0,   0
> total,   4996565,  45,  45,  45, 0.9, 0.7, 0.9,   
>   1.5,84.7,   218.3,  551.5,  0.11872,  0,  1, 248, 248, 

[jira] [Updated] (CASSANDRA-9923) stress write and counter_write hangs

2015-12-18 Thread T Jake Luciani (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-9923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

T Jake Luciani updated CASSANDRA-9923:
--
Priority: Minor  (was: Major)

> stress write and counter_write hangs
> 
>
> Key: CASSANDRA-9923
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9923
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tools
>Reporter: Robert Stupp
>Assignee: T Jake Luciani
>Priority: Minor
>  Labels: stress
>
> (Sorry for the vague description)
> I tried some cstar tests against counter columns. But all these tests against 
> 2.1 and 2.2 ended (hang) during with the following output:
> {noformat}
> Created keyspaces. Sleeping 3s for propagation.
> Sleeping 2s...
> Warming up COUNTER_WRITE with 15 iterations...
> Running COUNTER_WRITE with 300 threads for 1500 iteration
> type,  total ops,op/s,pk/s,   row/s,mean, med, .95,   
>   .99,.999, max,   time,   stderr, errors,  gc: #,  max ms,  sum ms,  
> sdv ms,  mb
> total, 98073,   98054,   98054,   98054, 3.1, 1.7, 8.9,   
>  23.2,89.9,   107.7,1.0,  0.0,  0,  0,   0,   0,  
>  0,   0
> total,188586,   72492,   72492,   72492, 4.1, 1.5,10.0,   
>  61.4,   202.8,   214.7,2.2,  0.13101,  0,  3, 564, 564,  
>  6,3447
> total,363880,  137986,  137986,  137986, 2.2, 1.4, 4.1,   
>   9.6,   207.1,   253.3,3.5,  0.18684,  0,  0,   0,   0,  
>  0,   0
> total,460122,  105062,  105062,  105062, 2.8, 1.4, 4.6,   
>  14.7,   225.6,   236.2,4.4,  0.13969,  0,  1, 214, 214,  
>  0,1199
> total,600625,  111453,  111453,  111453, 2.7, 1.4, 3.8,   
>  10.4,   231.5,   241.6,5.7,  0.11366,  0,  2, 442, 442,  
>  1,2389
> total,745680,  149583,  149583,  149583, 2.0, 1.4, 3.6,   
>   6.7,   155.8,   159.7,6.7,  0.11318,  0,  0,   0,   0,  
>  0,   0
> total,828453,   63632,   63632,   63632, 4.7, 1.4, 4.8,   
> 261.9,   274.5,   279.3,8.0,  0.12645,  0,  3, 782, 782,  
>  1,3542
> total,   1009560,  172429,  172429,  172429, 1.7, 1.4, 3.7,   
>   6.1,16.2,29.7,9.0,  0.11629,  0,  0,   0,   0,  
>  0,   0
> total,   1062409,   53860,   53860,   53860, 5.5, 1.3, 8.6,   
> 270.3,   293.4,   324.3,   10.0,  0.12738,  0,  2, 542, 542,  
>  7,2354
> total,   1186672,   96540,   96540,   96540, 3.1, 1.5, 5.9,   
>  14.5,   266.4,   277.6,   11.3,  0.11451,  0,  1, 260, 260,  
>  0,1183
> {noformat}
> ...
> {noformat}
> total,   4977251, 238, 238, 238, 0.7, 0.6, 0.7,   
>   1.3, 3.4,   158.5,  352.3,  0.11749,  0,  0,   0,   0,  
>  0,   0
> total,   4979839, 214, 214, 214, 0.6, 0.6, 0.7,   
>   1.3, 2.5, 2.8,  364.4,  0.11761,  0,  0,   0,   0,  
>  0,   0
> total,   4981729, 191, 191, 191, 0.6, 0.6, 0.7,   
>   1.3, 3.2, 3.3,  374.3,  0.11774,  0,  0,   0,   0,  
>  0,   0
> total,   4983362, 167, 167, 167, 0.8, 0.7, 1.8,   
>   2.7, 3.9, 5.8,  384.0,  0.11787,  0,  0,   0,   0,  
>  0,   0
> total,   4985171, 153, 153, 153, 0.7, 0.6, 1.2,   
>   1.4, 2.0, 3.3,  395.9,  0.11799,  0,  0,   0,   0,  
>  0,   0
> total,   4986684, 137, 137, 137, 0.7, 0.6, 0.8,   
>   1.3, 2.0, 2.0,  406.9,  0.11812,  0,  0,   0,   0,  
>  0,   0
> total,   4988410, 121, 121, 121, 0.7, 0.7, 0.8,   
>   1.3, 2.0, 2.8,  421.1,  0.11824,  0,  0,   0,   0,  
>  0,   0
> total,   4990216,  99,  99,  99, 0.7, 0.7, 0.8,   
>   1.4, 2.6, 2.8,  439.5,  0.11836,  0,  0,   0,   0,  
>  0,   0
> total,   4991765,  81,  81,  81, 0.8, 0.7, 0.8,   
>   1.4,30.1,81.6,  458.7,  0.11848,  0,  1, 159, 159,  
>  0,1179
> total,   4993731,  67,  67,  67, 0.7, 0.7, 0.8,   
>   1.4, 3.2, 3.2,  488.1,  0.11860,  0,  0,   0,   0,  
>  0,   0
> total,   4996565,  45,  45,  45, 0.9, 0.7, 0.9,   
>   1.5,84.7,   218.3,  551.5,  0.11872,  0,  1, 248

[jira] [Commented] (CASSANDRA-10863) HSHA test_closing_connections test still flaps on 3.0

2015-12-18 Thread Carl Yeksigian (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064178#comment-15064178
 ] 

Carl Yeksigian commented on CASSANDRA-10863:


I have a new [dtest 
branch|https://github.com/carlyeks/cassandra-dtest/tree/10863] which switched 
from using {{lsof}} to the jmx {{connectedThriftClients}}, which was also non-0 
in the original ticket (CASSANDRA-6546).

A [3.0 
branch|http://cassci.datastax.com/view/Dev/view/carlyeks/job/carlyeks-ticket-10863-3.0-dtest/lastSuccessfulBuild/testReport/thrift_hsha_test/ThriftHSHATest/test_closing_connections/history/]
 on cassci looks OK.

> HSHA test_closing_connections test still flaps on 3.0
> -
>
> Key: CASSANDRA-10863
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10863
> Project: Cassandra
>  Issue Type: Sub-task
>Reporter: Jim Witschey
>Assignee: Carl Yeksigian
> Fix For: 3.0.x
>
>
> The problem reported in CASSANDRA-10570 still seems to be happening on 
> CassCI, as recently as a couple days ago:
> http://cassci.datastax.com/job/cassandra-3.0_dtest/433/
> [~carlyeks] The fix in #10570 was to increase how long we'd sleep in the 
> tests. Should we just bump it up further, or does this make you suspect a 
> larger problem here?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Assigned] (CASSANDRA-10863) HSHA test_closing_connections test still flaps on 3.0

2015-12-18 Thread Carl Yeksigian (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carl Yeksigian reassigned CASSANDRA-10863:
--

Assignee: Carl Yeksigian

> HSHA test_closing_connections test still flaps on 3.0
> -
>
> Key: CASSANDRA-10863
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10863
> Project: Cassandra
>  Issue Type: Sub-task
>Reporter: Jim Witschey
>Assignee: Carl Yeksigian
> Fix For: 3.0.x
>
>
> The problem reported in CASSANDRA-10570 still seems to be happening on 
> CassCI, as recently as a couple days ago:
> http://cassci.datastax.com/job/cassandra-3.0_dtest/433/
> [~carlyeks] The fix in #10570 was to increase how long we'd sleep in the 
> tests. Should we just bump it up further, or does this make you suspect a 
> larger problem here?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-9923) stress write and counter_write hangs

2015-12-18 Thread T Jake Luciani (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064180#comment-15064180
 ] 

T Jake Luciani commented on CASSANDRA-9923:
---

This is a known error.  Mainly stress is running low on heap.  We can add an 
env variable for stress shell script to change the max heap, or maybe just set 
mx to something high [~snazy]

> stress write and counter_write hangs
> 
>
> Key: CASSANDRA-9923
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9923
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Robert Stupp
>Assignee: T Jake Luciani
>  Labels: stress
>
> (Sorry for the vague description)
> I tried some cstar tests against counter columns. But all these tests against 
> 2.1 and 2.2 ended (hang) during with the following output:
> {noformat}
> Created keyspaces. Sleeping 3s for propagation.
> Sleeping 2s...
> Warming up COUNTER_WRITE with 15 iterations...
> Running COUNTER_WRITE with 300 threads for 1500 iteration
> type,  total ops,op/s,pk/s,   row/s,mean, med, .95,   
>   .99,.999, max,   time,   stderr, errors,  gc: #,  max ms,  sum ms,  
> sdv ms,  mb
> total, 98073,   98054,   98054,   98054, 3.1, 1.7, 8.9,   
>  23.2,89.9,   107.7,1.0,  0.0,  0,  0,   0,   0,  
>  0,   0
> total,188586,   72492,   72492,   72492, 4.1, 1.5,10.0,   
>  61.4,   202.8,   214.7,2.2,  0.13101,  0,  3, 564, 564,  
>  6,3447
> total,363880,  137986,  137986,  137986, 2.2, 1.4, 4.1,   
>   9.6,   207.1,   253.3,3.5,  0.18684,  0,  0,   0,   0,  
>  0,   0
> total,460122,  105062,  105062,  105062, 2.8, 1.4, 4.6,   
>  14.7,   225.6,   236.2,4.4,  0.13969,  0,  1, 214, 214,  
>  0,1199
> total,600625,  111453,  111453,  111453, 2.7, 1.4, 3.8,   
>  10.4,   231.5,   241.6,5.7,  0.11366,  0,  2, 442, 442,  
>  1,2389
> total,745680,  149583,  149583,  149583, 2.0, 1.4, 3.6,   
>   6.7,   155.8,   159.7,6.7,  0.11318,  0,  0,   0,   0,  
>  0,   0
> total,828453,   63632,   63632,   63632, 4.7, 1.4, 4.8,   
> 261.9,   274.5,   279.3,8.0,  0.12645,  0,  3, 782, 782,  
>  1,3542
> total,   1009560,  172429,  172429,  172429, 1.7, 1.4, 3.7,   
>   6.1,16.2,29.7,9.0,  0.11629,  0,  0,   0,   0,  
>  0,   0
> total,   1062409,   53860,   53860,   53860, 5.5, 1.3, 8.6,   
> 270.3,   293.4,   324.3,   10.0,  0.12738,  0,  2, 542, 542,  
>  7,2354
> total,   1186672,   96540,   96540,   96540, 3.1, 1.5, 5.9,   
>  14.5,   266.4,   277.6,   11.3,  0.11451,  0,  1, 260, 260,  
>  0,1183
> {noformat}
> ...
> {noformat}
> total,   4977251, 238, 238, 238, 0.7, 0.6, 0.7,   
>   1.3, 3.4,   158.5,  352.3,  0.11749,  0,  0,   0,   0,  
>  0,   0
> total,   4979839, 214, 214, 214, 0.6, 0.6, 0.7,   
>   1.3, 2.5, 2.8,  364.4,  0.11761,  0,  0,   0,   0,  
>  0,   0
> total,   4981729, 191, 191, 191, 0.6, 0.6, 0.7,   
>   1.3, 3.2, 3.3,  374.3,  0.11774,  0,  0,   0,   0,  
>  0,   0
> total,   4983362, 167, 167, 167, 0.8, 0.7, 1.8,   
>   2.7, 3.9, 5.8,  384.0,  0.11787,  0,  0,   0,   0,  
>  0,   0
> total,   4985171, 153, 153, 153, 0.7, 0.6, 1.2,   
>   1.4, 2.0, 3.3,  395.9,  0.11799,  0,  0,   0,   0,  
>  0,   0
> total,   4986684, 137, 137, 137, 0.7, 0.6, 0.8,   
>   1.3, 2.0, 2.0,  406.9,  0.11812,  0,  0,   0,   0,  
>  0,   0
> total,   4988410, 121, 121, 121, 0.7, 0.7, 0.8,   
>   1.3, 2.0, 2.8,  421.1,  0.11824,  0,  0,   0,   0,  
>  0,   0
> total,   4990216,  99,  99,  99, 0.7, 0.7, 0.8,   
>   1.4, 2.6, 2.8,  439.5,  0.11836,  0,  0,   0,   0,  
>  0,   0
> total,   4991765,  81,  81,  81, 0.8, 0.7, 0.8,   
>   1.4,30.1,81.6,  458.7,  0.11848,  0,  1, 159, 159,  
>  0,1179
> total,   4993731,  67,  67,  67, 0.7, 0.7, 0.8,   
>   1.4, 3.2, 3.2,  488.1,  0.11860,  0,  0,   0,   0,  
>  0,

[jira] [Updated] (CASSANDRA-10879) HSHA dtest for closing connections almost always fails on CASSCI developer branches

2015-12-18 Thread Sylvain Lebresne (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne updated CASSANDRA-10879:
-
Assignee: Carl Yeksigian

> HSHA dtest for closing connections almost always fails on CASSCI developer 
> branches
> ---
>
> Key: CASSANDRA-10879
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10879
> Project: Cassandra
>  Issue Type: Bug
>  Components: Testing
>Reporter: Branimir Lambov
>Assignee: Carl Yeksigian
>Priority: Critical
>
> The test consistently succeeds on 2.1/2.2 branches, but has been failing 
> almost every time on developer ones for quite a while, for example [9258 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-dikang85-9258-dtest/lastCompletedBuild/testReport/],
>  [10817 
> dtest|http://cassci.datastax.com/view/Dev/view/krummas/job/krummas-marcuse-10817-dtest/],
>  [10059 (committed) 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-10059-dtest/lastCompletedBuild/testReport/],
>  [unchanged 2.2 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-cassandra-2.2-dtest/lastCompletedBuild/testReport/]
>  and many others. The failures cannot be genuine if the same code committed 
> to the main branch no longer fails the test.
> This is making it hard to identify genuine failures and blocking 
> CASSANDRA-9669 in particular.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10879) HSHA dtest for closing connections almost always fails on CASSCI developer branches

2015-12-18 Thread Sylvain Lebresne (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064173#comment-15064173
 ] 

Sylvain Lebresne commented on CASSANDRA-10879:
--

Ok, fair enough. Going to assign to [~carlyeks] though as it's related in any 
case.

> HSHA dtest for closing connections almost always fails on CASSCI developer 
> branches
> ---
>
> Key: CASSANDRA-10879
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10879
> Project: Cassandra
>  Issue Type: Bug
>  Components: Testing
>Reporter: Branimir Lambov
>Priority: Critical
>
> The test consistently succeeds on 2.1/2.2 branches, but has been failing 
> almost every time on developer ones for quite a while, for example [9258 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-dikang85-9258-dtest/lastCompletedBuild/testReport/],
>  [10817 
> dtest|http://cassci.datastax.com/view/Dev/view/krummas/job/krummas-marcuse-10817-dtest/],
>  [10059 (committed) 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-10059-dtest/lastCompletedBuild/testReport/],
>  [unchanged 2.2 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-cassandra-2.2-dtest/lastCompletedBuild/testReport/]
>  and many others. The failures cannot be genuine if the same code committed 
> to the main branch no longer fails the test.
> This is making it hard to identify genuine failures and blocking 
> CASSANDRA-9669 in particular.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-9923) stress write and counter_write hangs

2015-12-18 Thread Joshua McKenzie (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-9923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joshua McKenzie updated CASSANDRA-9923:
---
Assignee: T Jake Luciani

> stress write and counter_write hangs
> 
>
> Key: CASSANDRA-9923
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9923
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Robert Stupp
>Assignee: T Jake Luciani
>  Labels: stress
>
> (Sorry for the vague description)
> I tried some cstar tests against counter columns. But all these tests against 
> 2.1 and 2.2 ended (hang) during with the following output:
> {noformat}
> Created keyspaces. Sleeping 3s for propagation.
> Sleeping 2s...
> Warming up COUNTER_WRITE with 15 iterations...
> Running COUNTER_WRITE with 300 threads for 1500 iteration
> type,  total ops,op/s,pk/s,   row/s,mean, med, .95,   
>   .99,.999, max,   time,   stderr, errors,  gc: #,  max ms,  sum ms,  
> sdv ms,  mb
> total, 98073,   98054,   98054,   98054, 3.1, 1.7, 8.9,   
>  23.2,89.9,   107.7,1.0,  0.0,  0,  0,   0,   0,  
>  0,   0
> total,188586,   72492,   72492,   72492, 4.1, 1.5,10.0,   
>  61.4,   202.8,   214.7,2.2,  0.13101,  0,  3, 564, 564,  
>  6,3447
> total,363880,  137986,  137986,  137986, 2.2, 1.4, 4.1,   
>   9.6,   207.1,   253.3,3.5,  0.18684,  0,  0,   0,   0,  
>  0,   0
> total,460122,  105062,  105062,  105062, 2.8, 1.4, 4.6,   
>  14.7,   225.6,   236.2,4.4,  0.13969,  0,  1, 214, 214,  
>  0,1199
> total,600625,  111453,  111453,  111453, 2.7, 1.4, 3.8,   
>  10.4,   231.5,   241.6,5.7,  0.11366,  0,  2, 442, 442,  
>  1,2389
> total,745680,  149583,  149583,  149583, 2.0, 1.4, 3.6,   
>   6.7,   155.8,   159.7,6.7,  0.11318,  0,  0,   0,   0,  
>  0,   0
> total,828453,   63632,   63632,   63632, 4.7, 1.4, 4.8,   
> 261.9,   274.5,   279.3,8.0,  0.12645,  0,  3, 782, 782,  
>  1,3542
> total,   1009560,  172429,  172429,  172429, 1.7, 1.4, 3.7,   
>   6.1,16.2,29.7,9.0,  0.11629,  0,  0,   0,   0,  
>  0,   0
> total,   1062409,   53860,   53860,   53860, 5.5, 1.3, 8.6,   
> 270.3,   293.4,   324.3,   10.0,  0.12738,  0,  2, 542, 542,  
>  7,2354
> total,   1186672,   96540,   96540,   96540, 3.1, 1.5, 5.9,   
>  14.5,   266.4,   277.6,   11.3,  0.11451,  0,  1, 260, 260,  
>  0,1183
> {noformat}
> ...
> {noformat}
> total,   4977251, 238, 238, 238, 0.7, 0.6, 0.7,   
>   1.3, 3.4,   158.5,  352.3,  0.11749,  0,  0,   0,   0,  
>  0,   0
> total,   4979839, 214, 214, 214, 0.6, 0.6, 0.7,   
>   1.3, 2.5, 2.8,  364.4,  0.11761,  0,  0,   0,   0,  
>  0,   0
> total,   4981729, 191, 191, 191, 0.6, 0.6, 0.7,   
>   1.3, 3.2, 3.3,  374.3,  0.11774,  0,  0,   0,   0,  
>  0,   0
> total,   4983362, 167, 167, 167, 0.8, 0.7, 1.8,   
>   2.7, 3.9, 5.8,  384.0,  0.11787,  0,  0,   0,   0,  
>  0,   0
> total,   4985171, 153, 153, 153, 0.7, 0.6, 1.2,   
>   1.4, 2.0, 3.3,  395.9,  0.11799,  0,  0,   0,   0,  
>  0,   0
> total,   4986684, 137, 137, 137, 0.7, 0.6, 0.8,   
>   1.3, 2.0, 2.0,  406.9,  0.11812,  0,  0,   0,   0,  
>  0,   0
> total,   4988410, 121, 121, 121, 0.7, 0.7, 0.8,   
>   1.3, 2.0, 2.8,  421.1,  0.11824,  0,  0,   0,   0,  
>  0,   0
> total,   4990216,  99,  99,  99, 0.7, 0.7, 0.8,   
>   1.4, 2.6, 2.8,  439.5,  0.11836,  0,  0,   0,   0,  
>  0,   0
> total,   4991765,  81,  81,  81, 0.8, 0.7, 0.8,   
>   1.4,30.1,81.6,  458.7,  0.11848,  0,  1, 159, 159,  
>  0,1179
> total,   4993731,  67,  67,  67, 0.7, 0.7, 0.8,   
>   1.4, 3.2, 3.2,  488.1,  0.11860,  0,  0,   0,   0,  
>  0,   0
> total,   4996565,  45,  45,  45, 0.9, 0.7, 0.9,   
>   1.5,84.7,   218.3,  551.5,  0.11872,  0,  1, 248, 248,  
>  0,1180
> java.lang.RuntimeException: 

[jira] [Updated] (CASSANDRA-10850) v4 spec has tons of grammatical mistakes

2015-12-18 Thread Sylvain Lebresne (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne updated CASSANDRA-10850:
-
Reviewer: Sylvain Lebresne

> v4 spec has tons of grammatical mistakes
> 
>
> Key: CASSANDRA-10850
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10850
> Project: Cassandra
>  Issue Type: Bug
>  Components: Documentation and Website
>Reporter: Sandeep Tamhankar
> Fix For: 3.0.2
>
> Attachments: v4-protocol.patch
>
>
> https://github.com/apache/cassandra/blob/cassandra-3.0/doc/native_protocol_v4.spec
> I notice the following in the first section of the spec and then gave up:
> "The list of allowed opcode is defined Section 2.3" => "The list of allowed 
> opcode*s* is defined in Section 2.3"
> "the details of each corresponding message is described Section 4" => "the 
> details of each corresponding message are described in Section 4" since the 
> subject is details, not message.
> "Requests are those frame sent by" => "Requests are those frame*s* sent by"
> I think someone should go through the whole spec and fix all the mistakes 
> rather than me pointing out the ones I notice piece-meal. I found the grammar 
> errors to be rather distracting.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Reopened] (CASSANDRA-10879) HSHA dtest for closing connections almost always fails on CASSCI developer branches

2015-12-18 Thread Branimir Lambov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Branimir Lambov reopened CASSANDRA-10879:
-

No, this is a different and IMO more serious issue. The test does not flap or 
fail at all for 2.1 or 2.2, unless you are testing a developer branch, where it 
usually fails.

This looks like a problem of the infrastructure. A fix for 10863 _could_ fix 
this, but most probably won't.

> HSHA dtest for closing connections almost always fails on CASSCI developer 
> branches
> ---
>
> Key: CASSANDRA-10879
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10879
> Project: Cassandra
>  Issue Type: Bug
>  Components: Testing
>Reporter: Branimir Lambov
>Priority: Critical
>
> The test consistently succeeds on 2.1/2.2 branches, but has been failing 
> almost every time on developer ones for quite a while, for example [9258 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-dikang85-9258-dtest/lastCompletedBuild/testReport/],
>  [10817 
> dtest|http://cassci.datastax.com/view/Dev/view/krummas/job/krummas-marcuse-10817-dtest/],
>  [10059 (committed) 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-10059-dtest/lastCompletedBuild/testReport/],
>  [unchanged 2.2 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-cassandra-2.2-dtest/lastCompletedBuild/testReport/]
>  and many others. The failures cannot be genuine if the same code committed 
> to the main branch no longer fails the test.
> This is making it hard to identify genuine failures and blocking 
> CASSANDRA-9669 in particular.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10840) Replacing an aggregate with a new version doesn't reset INITCOND

2015-12-18 Thread Joshua McKenzie (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joshua McKenzie updated CASSANDRA-10840:

Reproduced In: 3.0.1, 2.2.4  (was: 2.2.4, 3.0.1)
 Reviewer: Benjamin Lerer

> Replacing an aggregate with a new version doesn't reset INITCOND
> 
>
> Key: CASSANDRA-10840
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10840
> Project: Cassandra
>  Issue Type: Bug
>  Components: CQL
> Environment: Observed in Cassandra 2.2.4, though it might be an issue 
> in 3.0 as well
>Reporter: Sandeep Tamhankar
>Assignee: Robert Stupp
> Fix For: 2.2.x, 3.0.x, 3.x
>
>
> {code}
> use simplex;
>   CREATE FUNCTION state_group_and_sum(state map, star_rating 
> int)
>   CALLED ON NULL INPUT
>   RETURNS map
>   LANGUAGE java
>   AS 'if (state.get(star_rating) == null) 
> state.put(star_rating, 1); else state.put(star_rating, ((Integer) 
> state.get(star_rating)) + 1); return state;';
>   CREATE FUNCTION percent_stars(state map)
>   RETURNS NULL ON NULL INPUT
>   RETURNS map
>   LANGUAGE java AS $$
> Integer sum = 0; 
> for(Object k : state.keySet()) { 
> sum = sum + (Integer) state.get((Integer) k);
> }
> java.util.Map results = new java.util.HashMap Integer>();
> for(Object k : state.keySet()) {
> results.put((Integer) k, ((Integer) state.get((Integer) k))*100 / sum);
> }
> return results;
> $$;
> {code}
> {code}
> CREATE OR REPLACE AGGREGATE group_and_sum(int)
> SFUNC state_group_and_sum
> STYPE map
> FINALFUNC percent_stars
> INITCOND {}
> {code}
> 1. View the aggregates
> {{select * from system.schema_aggregates;}}
> 2. Now update
> {code}
> CREATE OR REPLACE AGGREGATE group_and_sum(int)
> SFUNC state_group_and_sum
> STYPE map
> FINALFUNC percent_stars
> INITCOND NULL
> {code}
> 3. View the aggregates
> {{select * from system.schema_aggregates;}}
> Expected result:
> * The update should have made initcond null
> Actual result:
> * The update did not touch INITCOND.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10111) reconnecting snitch can bypass cluster name check

2015-12-18 Thread Joshua McKenzie (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joshua McKenzie updated CASSANDRA-10111:

Reproduced In: 3.0.1, 2.2.4, 2.1.12, 2.0.15  (was: 2.0.15, 2.1.12, 2.2.4, 
3.0.1)
 Reviewer: Paulo Motta

> reconnecting snitch can bypass cluster name check
> -
>
> Key: CASSANDRA-10111
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10111
> Project: Cassandra
>  Issue Type: Bug
>  Components: Distributed Metadata
>Reporter: Chris Burroughs
>Assignee: Joel Knighton
>  Labels: gossip
> Fix For: 3.x
>
>
> Setup:
>  * Two clusters: A & B
>  * Both are two DC cluster
>  * Both use GossipingPropertyFileSnitch with different 
> listen_address/broadcast_address
> A new node was added to cluster A with a broadcast_address of an existing 
> node in cluster B (due to an out of data DNS entry).  Cluster B  added all of 
> the nodes from cluster A, somehow bypassing the cluster name mismatch check 
> for this nodes.  The first reference to cluster A nodes in cluster B logs is 
> when then were added:
> {noformat}
>  INFO [GossipStage:1] 2015-08-17 15:08:33,858 Gossiper.java (line 983) Node 
> /8.37.70.168 is now part of the cluster
> {noformat}
> Cluster B nodes then tried to gossip to cluster A nodes, but cluster A kept 
> them out with 'ClusterName mismatch'.  Cluster B however tried to send to 
> send reads/writes to cluster A and general mayhem ensued.
> Obviously this is a Bad (TM) config that Should Not Be Done.  However, since 
> the consequence of crazy merged clusters are really bad (the reason there is 
> the name mismatch check in the first place) I think the hole is reasonable to 
> plug.  I'm not sure exactly what the code path is that skips the check in 
> GossipDigestSynVerbHandler.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10829) cleanup + repair generates a lot of logs

2015-12-18 Thread Joshua McKenzie (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joshua McKenzie updated CASSANDRA-10829:

Reviewer: Carl Yeksigian

> cleanup + repair generates a lot of logs
> 
>
> Key: CASSANDRA-10829
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10829
> Project: Cassandra
>  Issue Type: Bug
> Environment: 5 nodes on Cassandra 2.1.11 (on Debian)
>Reporter: Fabien Rousseau
>Assignee: Marcus Eriksson
> Fix For: 2.1.x
>
>
> One of our node generates a lot of cassandra logs (int the 10 MB/s) and CPU 
> usage has increased (by a factor 2-3).
> This was most probably triggered by a "nodetool snapshot" while a cleanup was 
> already running on this node.
> An example of those logs:
> 2015-12-08 09:15:17,794 INFO  
> [ValidationExecutor:689]ColumnFamilyStore.java:1923 Spinning trying to 
> capture released readers [...]
> 2015-12-08 09:15:17,794 INFO  
> [ValidationExecutor:689]ColumnFamilyStore.java:1924 Spinning trying to 
> capture all readers [...]
> 2015-12-08 09:15:17,795 INFO  
> [ValidationExecutor:689]ColumnFamilyStore.java:1923 Spinning trying to 
> capture released readers [...]
> 2015-12-08 09:15:17,795 INFO  
> [ValidationExecutor:689]ColumnFamilyStore.java:1924 Spinning trying to 
> capture all readers [...]
> (I removed SSTableReader information because it's rather long... I can share 
> it privately if needed)
> Note that the date has not been changed (only 1ms between logs)
> It should not generate that gigantic amount of logs :)
> This is probably linked to: 
> https://issues.apache.org/jira/browse/CASSANDRA-9637



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Assigned] (CASSANDRA-10903) AssertionError while reading sstable when querying static column

2015-12-18 Thread Sylvain Lebresne (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne reassigned CASSANDRA-10903:


Assignee: Sylvain Lebresne

> AssertionError while reading sstable when querying static column
> 
>
> Key: CASSANDRA-10903
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10903
> Project: Cassandra
>  Issue Type: Bug
>  Components: Local Write-Read Paths
>Reporter: Tyler Hobbs
>Assignee: Sylvain Lebresne
>
> I'm able to consistently reproduce the following error:
> {noformat}
> 1  WARN [SharedPool-Worker-1] 2015-12-17 17:37:00,196  
> AbstractTracingAwareExecutorService.java (line 169) Uncaught exception on 
> thread Thread[SharedPool-Worker-1,5,main]: {}
> java.lang.AssertionError: null
> at 
> org.apache.cassandra.db.columniterator.AbstractSSTableIterator$IndexState.updateBlock(AbstractSSTableIterator.java:463)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.columniterator.SSTableIterator$ForwardIndexedReader.computeNext(SSTableIterator.java:268)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.columniterator.SSTableIterator$ForwardReader.hasNextInternal(SSTableIterator.java:158)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.columniterator.AbstractSSTableIterator$Reader.hasNext(AbstractSSTableIterator.java:352)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.columniterator.AbstractSSTableIterator.hasNext(AbstractSSTableIterator.java:219)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.columniterator.SSTableIterator.hasNext(SSTableIterator.java:32)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.utils.MergeIterator$Candidate.advance(MergeIterator.java:369)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.utils.MergeIterator$ManyToOne.advance(MergeIterator.java:189)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.utils.MergeIterator$ManyToOne.computeNext(MergeIterator.java:158)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47) 
> ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.rows.UnfilteredRowIterators$UnfilteredRowMergeIterator.computeNext(UnfilteredRowIterators.java:426)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.rows.UnfilteredRowIterators$UnfilteredRowMergeIterator.computeNext(UnfilteredRowIterators.java:286)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47) 
> ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at org.apache.cassandra.db.transform.BaseRows.hasNext(BaseRows.java:108) 
> ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.rows.UnfilteredRowIteratorSerializer.serialize(UnfilteredRowIteratorSerializer.java:131)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.rows.UnfilteredRowIteratorSerializer.serialize(UnfilteredRowIteratorSerializer.java:87)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.rows.UnfilteredRowIteratorSerializer.serialize(UnfilteredRowIteratorSerializer.java:77)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.partitions.UnfilteredPartitionIterators$Serializer.serialize(UnfilteredPartitionIterators.java:298)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.ReadResponse$LocalDataResponse.build(ReadResponse.java:136)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.ReadResponse$LocalDataResponse.(ReadResponse.java:128)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.ReadResponse$LocalDataResponse.(ReadResponse.java:123)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.ReadResponse.createDataResponse(ReadResponse.java:65) 
> ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.db.ReadCommand.createResponse(ReadCommand.java:288) 
> ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.service.StorageProxy$LocalReadRunnable.runMayThrow(StorageProxy.java:1692)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:2346)
>  ~[cassandra-all-3.0.0.740.jar:3.0.0.740]
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> ~[na:1.8.0_45]
> at 
> org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTrac

[jira] [Updated] (CASSANDRA-10887) Pending range calculator gives wrong pending ranges for moves

2015-12-18 Thread Sylvain Lebresne (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne updated CASSANDRA-10887:
-
Assignee: Branimir Lambov

> Pending range calculator gives wrong pending ranges for moves
> -
>
> Key: CASSANDRA-10887
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10887
> Project: Cassandra
>  Issue Type: Bug
>  Components: Coordination
>Reporter: Richard Low
>Assignee: Branimir Lambov
>Priority: Critical
>
> My understanding is the PendingRangeCalculator is meant to calculate who 
> should receive extra writes during range movements. However, it adds the 
> wrong ranges for moves. An extreme example of this can be seen in the 
> following reproduction. Create a 5 node cluster (I did this on 2.0.16 and 
> 2.2.4) and a keyspace RF=3 and a simple table. Then start moving a node and 
> immediately kill -9 it. Now you see a node as down and moving in the ring. 
> Try a quorum write for a partition that is stored on that node - it will fail 
> with a timeout. Further, all CAS reads or writes fail immediately with 
> unavailable exception because they attempt to include the moving node twice. 
> This is likely to be the cause of CASSANDRA-10423.
> In my example I had this ring:
> 127.0.0.1  rack1   Up Normal  170.97 KB   20.00%  
> -9223372036854775808
> 127.0.0.2  rack1   Up Normal  124.06 KB   20.00%  
> -5534023222112865485
> 127.0.0.3  rack1   Down   Moving  108.7 KB40.00%  
> 1844674407370955160
> 127.0.0.4  rack1   Up Normal  142.58 KB   0.00%   
> 1844674407370955161
> 127.0.0.5  rack1   Up Normal  118.64 KB   20.00%  
> 5534023222112865484
> Node 3 was moving to -1844674407370955160. I added logging to print the 
> pending and natural endpoints. For ranges owned by node 3, node 3 appeared in 
> pending and natural endpoints. The blockFor is increased to 3 so we’re 
> effectively doing CL.ALL operations. This manifests as write timeouts and CAS 
> unavailables when the node is down.
> The correct pending range for this scenario is node 1 is gaining the range 
> (-1844674407370955160, 1844674407370955160). So node 1 should be added as a 
> destination for writes and CAS for this range, not node 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (CASSANDRA-10879) HSHA dtest for closing connections almost always fails on CASSCI developer branches

2015-12-18 Thread Sylvain Lebresne (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne resolved CASSANDRA-10879.
--
Resolution: Duplicate

Unless I'm mistaken, that's a duplicate of CASSANDRA-10863.

> HSHA dtest for closing connections almost always fails on CASSCI developer 
> branches
> ---
>
> Key: CASSANDRA-10879
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10879
> Project: Cassandra
>  Issue Type: Bug
>  Components: Testing
>Reporter: Branimir Lambov
>Priority: Critical
>
> The test consistently succeeds on 2.1/2.2 branches, but has been failing 
> almost every time on developer ones for quite a while, for example [9258 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-dikang85-9258-dtest/lastCompletedBuild/testReport/],
>  [10817 
> dtest|http://cassci.datastax.com/view/Dev/view/krummas/job/krummas-marcuse-10817-dtest/],
>  [10059 (committed) 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-10059-dtest/lastCompletedBuild/testReport/],
>  [unchanged 2.2 
> dtest|http://cassci.datastax.com/view/Dev/view/blambov/job/blambov-cassandra-2.2-dtest/lastCompletedBuild/testReport/]
>  and many others. The failures cannot be genuine if the same code committed 
> to the main branch no longer fails the test.
> This is making it hard to identify genuine failures and blocking 
> CASSANDRA-9669 in particular.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Resolved] (CASSANDRA-10878) Unable to read obsolete message version 1; The earliest version supported is 2.0.0

2015-12-18 Thread Joshua McKenzie (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joshua McKenzie resolved CASSANDRA-10878.
-
Resolution: Duplicate

>  Unable to read obsolete message version 1; The earliest version supported is 
> 2.0.0
> ---
>
> Key: CASSANDRA-10878
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10878
> Project: Cassandra
>  Issue Type: Bug
>  Components: Streaming and Messaging
>Reporter: esala wona
>  Labels: starter
>
> I used cassandra version 2.1.2, but I get some error about that:
>  error message 
> ERROR [Thread-83674153] 2015-12-15 10:54:42,980 CassandraDaemon.java:153 - 
> Exception in thread Thread[Thread-83674153,5,main]
> java.lang.UnsupportedOperationException: Unable to read obsolete message 
> version 1; The earliest version supported is 2.0.0
>   at 
> org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnection.java:78)
>  ~[apache-cassandra-2.1.2.jar:2.1.2]
> = end 
> == nodetool information 
> ces@ICESSuse3631:/opt/ces/cassandra/bin> ./nodetool gossipinfo
> /192.168.0.1
>   generation:1450148624
>   heartbeat:299069
>   SCHEMA:194168a3-f66e-3ab9-b811-4f7a7c3b89ca
>   STATUS:NORMAL,-111061256928956495
>   RELEASE_VERSION:2.1.2
>   RACK:rack1
>   DC:datacenter1
>   RPC_ADDRESS:192.144.36.32
>   HOST_ID:11f793f0-999b-4ba8-8bdd-0f0c73ae2e23
>   NET_VERSION:8
>   SEVERITY:0.0
>   LOAD:1.3757700946E10
> /192.168.0.2
>   generation:1450149068
>   heartbeat:297714
>   SCHEMA:194168a3-f66e-3ab9-b811-4f7a7c3b89ca
>   RELEASE_VERSION:2.1.2
>   STATUS:NORMAL,-1108435478195556849
>   RACK:rack1
>   DC:datacenter1
>   RPC_ADDRESS:192.144.36.33
>   HOST_ID:0f1a2dab-1d39-4419-bb68-03386c1a79df
>   NET_VERSION:8
>   SEVERITY:7.611548900604248
>   LOAD:8.295301191E9
> end=



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Assigned] (CASSANDRA-10856) CHANGES and NEWS updated incorrectly when "thrift by default" was deprecated

2015-12-18 Thread Sylvain Lebresne (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne reassigned CASSANDRA-10856:


Assignee: Sylvain Lebresne

> CHANGES and NEWS updated incorrectly when "thrift by default" was deprecated
> 
>
> Key: CASSANDRA-10856
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10856
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Jim Witschey
>Assignee: Sylvain Lebresne
>
> Thrift was no longer started by default in CASSANDRA-9319. This change 
> affects 2.2+, but the CHANGES and NEWS document the change as affecting 3.0+:
> https://github.com/apache/cassandra/commit/fa4a020ac922fcdc0f3c2bebe35777cfa2e223c1
> I think this is incorrect; [~iamaleksey] can you confirm?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10896) Fix skipping logic on upgrade tests in dtest

2015-12-18 Thread Jim Witschey (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jim Witschey updated CASSANDRA-10896:
-
Assignee: DS Test Eng  (was: Jim Witschey)

> Fix skipping logic on upgrade tests in dtest
> 
>
> Key: CASSANDRA-10896
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10896
> Project: Cassandra
>  Issue Type: Sub-task
>Reporter: Jim Witschey
>Assignee: DS Test Eng
> Fix For: 3.0.x
>
>
> This will be a general ticket for upgrade dtests that fail because of bad 
> logic surrounding skipping tests. We need a better system in place for 
> skipping tests that are not intended to work on certain versions of 
> Cassandra; at present, we run the upgrade tests with {{SKIP=false}} because, 
> again, the built-in skipping logic is bad.
> One such test is test_v2_protocol_IN_with_tuples:
> http://cassci.datastax.com/job/storage_engine_upgrade_dtest-22_tarball-311/lastCompletedBuild/testReport/upgrade_tests.cql_tests/TestCQLNodes3RF3/test_v2_protocol_IN_with_tuples/
> This shouldn't be run on clusters that include nodes running 3.0.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10854) cqlsh COPY FROM csv having line with more than one consecutive ',' delimiter is throwing 'list index out of range'

2015-12-18 Thread Aleksey Yeschenko (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Yeschenko updated CASSANDRA-10854:
--
Priority: Minor  (was: Major)

> cqlsh COPY FROM csv having line with more than one consecutive  ',' delimiter 
>  is throwing 'list index out of range'
> 
>
> Key: CASSANDRA-10854
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10854
> Project: Cassandra
>  Issue Type: Bug
>  Components: Tools
> Environment: cqlsh 5.0.1 | Cassandra 2.1.11.969 | DSE 4.8.3 | CQL 
> spec 3.2.1 
>Reporter: Puspendu Banerjee
>Priority: Minor
>
> cqlsh COPY FROM csv having line with more than one consecutive  ',' delimiter 
>  is throwing 'list index out of range'
> Steps to re-produce:
> CREATE TABLE tracks_by_album (
>   album_title TEXT,
>   album_year INT,
>   performer TEXT STATIC,
>   album_genre TEXT STATIC,
>   track_number INT,
>   track_title TEXT,
>   PRIMARY KEY ((album_title, album_year), track_number)
> );
> Create a file: tracks_by_album.csv having following 2 lines :
> album,year,performer,genre,number,title
> a,2015,b c d,e f g,,
> cqlsh> COPY music.tracks_by_album
>  (album_title, album_year, performer, album_genre, track_number, 
> track_title)
> FROM '~/tracks_by_album.csv'
> WITH HEADER = 'true';
> Error :
> Starting copy of music.tracks_by_album with columns ['album_title', 
> 'album_year', 'performer', 'album_genre', 'track_number', 'track_title'].
> list index out of range
> Aborting import at record #1. Previously inserted records are still present, 
> and some records after that may be present as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10905) secondary_indexes_test.py:TestSecondaryIndexes.test_only_coordinator_chooses_index_for_query flaps on 3.0+

2015-12-18 Thread Jim Witschey (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064144#comment-15064144
 ] 

Jim Witschey commented on CASSANDRA-10905:
--

This seems to be a likely test issue, so I've assigned the DataStax Test 
Engineering team account.

> secondary_indexes_test.py:TestSecondaryIndexes.test_only_coordinator_chooses_index_for_query
>  flaps on 3.0+
> --
>
> Key: CASSANDRA-10905
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10905
> Project: Cassandra
>  Issue Type: Sub-task
>Reporter: Jim Witschey
>Assignee: DS Test Eng
> Fix For: 3.0.x
>
>
> This test flaps when it expects to find 1 of each of several trace events, 
> but doesn't find some of them. I noticed it on 3.0:
> http://cassci.datastax.com/job/cassandra-3.0_dtest/438/testReport/junit/secondary_indexes_test/TestSecondaryIndexes/test_only_coordinator_chooses_index_for_query/history/
> But I've also seen it on trunk, so it would appear it hasn't been fixed:
> http://cassci.datastax.com/job/trunk_dtest/831/testReport/junit/secondary_indexes_test/TestSecondaryIndexes/test_only_coordinator_chooses_index_for_query/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Assigned] (CASSANDRA-10905) secondary_indexes_test.py:TestSecondaryIndexes.test_only_coordinator_chooses_index_for_query flaps on 3.0+

2015-12-18 Thread DS Test Eng (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

DS Test Eng reassigned CASSANDRA-10905:
---

Assignee: DS Test Eng

> secondary_indexes_test.py:TestSecondaryIndexes.test_only_coordinator_chooses_index_for_query
>  flaps on 3.0+
> --
>
> Key: CASSANDRA-10905
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10905
> Project: Cassandra
>  Issue Type: Sub-task
>Reporter: Jim Witschey
>Assignee: DS Test Eng
> Fix For: 3.0.x
>
>
> This test flaps when it expects to find 1 of each of several trace events, 
> but doesn't find some of them. I noticed it on 3.0:
> http://cassci.datastax.com/job/cassandra-3.0_dtest/438/testReport/junit/secondary_indexes_test/TestSecondaryIndexes/test_only_coordinator_chooses_index_for_query/history/
> But I've also seen it on trunk, so it would appear it hasn't been fixed:
> http://cassci.datastax.com/job/trunk_dtest/831/testReport/junit/secondary_indexes_test/TestSecondaryIndexes/test_only_coordinator_chooses_index_for_query/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-6696) Partition sstables by token range

2015-12-18 Thread Marcus Eriksson (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-6696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064117#comment-15064117
 ] 

Marcus Eriksson commented on CASSANDRA-6696:


pushed the flush writers fix and when re-running the tests i noticed a problem 
with ScrubTest and fixed that. Also fixed dtest multi data directory failure I 
had missed.

Test runs:
http://cassci.datastax.com/view/Dev/view/krummas/job/krummas-marcuse-6696-11-testall
http://cassci.datastax.com/view/Dev/view/krummas/job/6696_dtest

> Partition sstables by token range
> -
>
> Key: CASSANDRA-6696
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6696
> Project: Cassandra
>  Issue Type: Improvement
>Reporter: sankalp kohli
>Assignee: Marcus Eriksson
>  Labels: compaction, correctness, dense-storage, 
> jbod-aware-compaction, performance
> Fix For: 3.2
>
>
> In JBOD, when someone gets a bad drive, the bad drive is replaced with a new 
> empty one and repair is run. 
> This can cause deleted data to come back in some cases. Also this is true for 
> corrupt stables in which we delete the corrupt stable and run repair. 
> Here is an example:
> Say we have 3 nodes A,B and C and RF=3 and GC grace=10days. 
> row=sankalp col=sankalp is written 20 days back and successfully went to all 
> three nodes. 
> Then a delete/tombstone was written successfully for the same row column 15 
> days back. 
> Since this tombstone is more than gc grace, it got compacted in Nodes A and B 
> since it got compacted with the actual data. So there is no trace of this row 
> column in node A and B.
> Now in node C, say the original data is in drive1 and tombstone is in drive2. 
> Compaction has not yet reclaimed the data and tombstone.  
> Drive2 becomes corrupt and was replaced with new empty drive. 
> Due to the replacement, the tombstone in now gone and row=sankalp col=sankalp 
> has come back to life. 
> Now after replacing the drive we run repair. This data will be propagated to 
> all nodes. 
> Note: This is still a problem even if we run repair every gc grace. 
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-9303) Match cassandra-loader options in COPY FROM

2015-12-18 Thread Paulo Motta (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-9303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064115#comment-15064115
 ] 

Paulo Motta commented on CASSANDRA-9303:


Looking very good, I tested the new config options and the ingest rate is now 
working like a charm. Some follow-up comments below:

bq. Done, I cleaned up the options a bit as well and removed the helper methods 
in the main cqlsh files.

* I was initially thinking that while \[copy\] is a global section, 
\[copy-from*\] and \[copy-to*\] are exclusive sections for these commands, so 
for example if you define INGESTRATE by mistake in the \[copy-to\] section it's 
not picked up by a copy-from execution.
* Can you also add some examples to {{conf/cqlshrc.sample}} ? And maybe also 
update the cql protocol version there which is quite old.
* Also in the {{Reading options from /home/paulo/.cqlsh/cqlshrc}} message, 
maybe print which options are being read to improve clarity (don't worry if not 
straightforward)

bq. If a file from a previous execution exists it will be ranamed to 
.MMDD_HHMMSS.

Cool! Since it's an edge-case I guess we can omit in the help and print a 
message instead in case it happens.

bq. So, I converted SKIPCOLS to a COPY FROM option and changed its semantic to 
just skip columns that exist in the file.

Sounds good, it just seems the skipped columns is still being printed on the 
message {{Starting copy of keyspace1.standard1 with columns \['key', 'C0', 
'C1', 'C2', 'C3', 'C4'\].}} (you fixed before, but it came back somehow).

Minor code style nits:

* Move csv_dialect_defaults from cqlsh.py to copyutil.py
* Move exclusive skip_columns field from CopyTask to ImportTask
* csv_options are a bit misleading since they are not exclusive csv-related 
options, can we maybe rename the tuple CopyOptions(csv, dialect, unrecognized) 
to Options(copy, dialect, unrecognized)?

We're getting there, I guess we'll be done by next round. :)

> Match cassandra-loader options in COPY FROM
> ---
>
> Key: CASSANDRA-9303
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9303
> Project: Cassandra
>  Issue Type: New Feature
>  Components: Tools
>Reporter: Jonathan Ellis
>Assignee: Stefania
>Priority: Critical
> Fix For: 2.1.x
>
>
> https://github.com/brianmhess/cassandra-loader added a bunch of options to 
> handle real world requirements, we should match those.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-10653) Remove dependency on jgrapht for UDT resolution

2015-12-18 Thread Aleksey Yeschenko (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-10653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064116#comment-15064116
 ] 

Aleksey Yeschenko commented on CASSANDRA-10653:
---

Done 
[here|http://cassci.datastax.com/view/Dev/view/iamaleksey/job/iamaleksey-10653-testall/lastCompletedBuild/testReport/]
 and 
[here|http://cassci.datastax.com/view/Dev/view/iamaleksey/job/iamaleksey-10653-dtest/lastCompletedBuild/testReport/].

Committed as 
[d877ba073f60b8aba9ab70a5e163cc13b232ffdd|https://github.com/apache/cassandra/commit/d877ba073f60b8aba9ab70a5e163cc13b232ffdd]
 to 3.0 and merged with trunk. Thanks.

> Remove dependency on jgrapht for UDT resolution
> ---
>
> Key: CASSANDRA-10653
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10653
> Project: Cassandra
>  Issue Type: Bug
>  Components: Distributed Metadata
>Reporter: Aleksey Yeschenko
>Assignee: Aleksey Yeschenko
>Priority: Minor
> Fix For: 3.0.x
>
>
> Now that the java-driver no longer pulls it as a dependency, it is silly to 
> pull a whole library for resolving UDTs dependencies.
> Should rewrite the resolution code without jgrapht (maybe reuse whatever code 
> java-driver ended up writing).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[2/2] cassandra git commit: Merge branch 'cassandra-3.0' into trunk

2015-12-18 Thread aleksey
Merge branch 'cassandra-3.0' into trunk


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/a0f59dce
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/a0f59dce
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/a0f59dce

Branch: refs/heads/trunk
Commit: a0f59dce5bb907dc8f4d08e17ac4e511cf5f81c7
Parents: 50f7e02 d877ba0
Author: Aleksey Yeschenko 
Authored: Fri Dec 18 15:43:52 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 15:43:52 2015 +

--
 CHANGES.txt |   1 +
 NOTICE.txt  |   4 -
 build.xml   |   2 -
 lib/jgrapht-core-0.9.1.jar  | Bin 351208 -> 0 bytes
 lib/licenses/jgrapht-core-0.9.1.txt | 227 ---
 src/java/org/apache/cassandra/schema/Types.java |  64 --
 6 files changed, 47 insertions(+), 251 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a0f59dce/CHANGES.txt
--
diff --cc CHANGES.txt
index d49a75f,e6ab5dd..6bbded8
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -1,25 -1,5 +1,26 @@@
 -3.0.3
 +3.2
 + * Establish bootstrap stream sessions sequentially (CASSANDRA-6992)
 + * Sort compactionhistory output by timestamp (CASSANDRA-10464)
 + * More efficient BTree removal (CASSANDRA-9991)
 + * Make tablehistograms accept the same syntax as tablestats (CASSANDRA-10149)
 + * Group pending compactions based on table (CASSANDRA-10718)
 + * Add compressor name in sstablemetadata output (CASSANDRA-9879)
 + * Fix type casting for counter columns (CASSANDRA-10824)
 + * Prevent running Cassandra as root (CASSANDRA-8142)
 + * bound maximum in-flight commit log replay mutation bytes to 64 megabytes 
(CASSANDRA-8639)
 + * Normalize all scripts (CASSANDRA-10679)
 + * Make compression ratio much more accurate (CASSANDRA-10225)
 + * Optimize building of Clustering object when only one is created 
(CASSANDRA-10409)
 + * Make index building pluggable (CASSANDRA-10681)
 + * Add sstable flush observer (CASSANDRA-10678)
 + * Improve NTS endpoints calculation (CASSANDRA-10200)
 + * Improve performance of the folderSize function (CASSANDRA-10677)
 + * Add support for type casting in selection clause (CASSANDRA-10310)
 + * Added graphing option to cassandra-stress (CASSANDRA-7918)
 + * Abort in-progress queries that time out (CASSANDRA-7392)
 + * Add transparent data encryption core classes (CASSANDRA-9945)
 +Merged from 3.0:
+  * Eliminate the dependency on jgrapht for UDT resolution (CASSANDRA-10653)
   * (Hadoop) Close Clusters and Sessions in Hadoop Input/Output classes 
(CASSANDRA-1837)
   * Fix sstableloader not working with upper case keyspace name 
(CASSANDRA-10806)
  Merged from 2.2:

http://git-wip-us.apache.org/repos/asf/cassandra/blob/a0f59dce/build.xml
--



[1/2] cassandra git commit: Eliminate the dependency on jgrapht for UDT resolution

2015-12-18 Thread aleksey
Repository: cassandra
Updated Branches:
  refs/heads/trunk 50f7e0204 -> a0f59dce5


Eliminate the dependency on jgrapht for UDT resolution

patch by Aleksey Yeschenko; reviewed by Sylvain Lebresne for
CASSANDRA-10653


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/d877ba07
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/d877ba07
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/d877ba07

Branch: refs/heads/trunk
Commit: d877ba073f60b8aba9ab70a5e163cc13b232ffdd
Parents: 2da3c9d
Author: Aleksey Yeschenko 
Authored: Mon Nov 16 22:22:51 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 15:39:33 2015 +

--
 CHANGES.txt |   1 +
 NOTICE.txt  |   4 -
 build.xml   |   2 -
 lib/jgrapht-core-0.9.1.jar  | Bin 351208 -> 0 bytes
 lib/licenses/jgrapht-core-0.9.1.txt | 227 ---
 src/java/org/apache/cassandra/schema/Types.java |  64 --
 6 files changed, 47 insertions(+), 251 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d877ba07/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index a2951a8..e6ab5dd 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.0.3
+ * Eliminate the dependency on jgrapht for UDT resolution (CASSANDRA-10653)
  * (Hadoop) Close Clusters and Sessions in Hadoop Input/Output classes 
(CASSANDRA-1837)
  * Fix sstableloader not working with upper case keyspace name 
(CASSANDRA-10806)
 Merged from 2.2:

http://git-wip-us.apache.org/repos/asf/cassandra/blob/d877ba07/NOTICE.txt
--
diff --git a/NOTICE.txt b/NOTICE.txt
index b880183..a20994f 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -83,7 +83,3 @@ BSD 3-clause
 ASM
 (http://asm.ow2.org/)
 Copyright (c) 2000-2011 INRIA, France Telecom
-
-JGraphT
-(http://jgrapht.org)
-Copyright 2003-2015, by Barak Naveh and Contributors.

http://git-wip-us.apache.org/repos/asf/cassandra/blob/d877ba07/build.xml
--
diff --git a/build.xml b/build.xml
index 0420652..cab361f 100644
--- a/build.xml
+++ b/build.xml
@@ -392,7 +392,6 @@
   
   
   
-  
   
   
   

cassandra git commit: Eliminate the dependency on jgrapht for UDT resolution

2015-12-18 Thread aleksey
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.0 2da3c9db1 -> d877ba073


Eliminate the dependency on jgrapht for UDT resolution

patch by Aleksey Yeschenko; reviewed by Sylvain Lebresne for
CASSANDRA-10653


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/d877ba07
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/d877ba07
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/d877ba07

Branch: refs/heads/cassandra-3.0
Commit: d877ba073f60b8aba9ab70a5e163cc13b232ffdd
Parents: 2da3c9d
Author: Aleksey Yeschenko 
Authored: Mon Nov 16 22:22:51 2015 +
Committer: Aleksey Yeschenko 
Committed: Fri Dec 18 15:39:33 2015 +

--
 CHANGES.txt |   1 +
 NOTICE.txt  |   4 -
 build.xml   |   2 -
 lib/jgrapht-core-0.9.1.jar  | Bin 351208 -> 0 bytes
 lib/licenses/jgrapht-core-0.9.1.txt | 227 ---
 src/java/org/apache/cassandra/schema/Types.java |  64 --
 6 files changed, 47 insertions(+), 251 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d877ba07/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index a2951a8..e6ab5dd 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.0.3
+ * Eliminate the dependency on jgrapht for UDT resolution (CASSANDRA-10653)
  * (Hadoop) Close Clusters and Sessions in Hadoop Input/Output classes 
(CASSANDRA-1837)
  * Fix sstableloader not working with upper case keyspace name 
(CASSANDRA-10806)
 Merged from 2.2:

http://git-wip-us.apache.org/repos/asf/cassandra/blob/d877ba07/NOTICE.txt
--
diff --git a/NOTICE.txt b/NOTICE.txt
index b880183..a20994f 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -83,7 +83,3 @@ BSD 3-clause
 ASM
 (http://asm.ow2.org/)
 Copyright (c) 2000-2011 INRIA, France Telecom
-
-JGraphT
-(http://jgrapht.org)
-Copyright 2003-2015, by Barak Naveh and Contributors.

http://git-wip-us.apache.org/repos/asf/cassandra/blob/d877ba07/build.xml
--
diff --git a/build.xml b/build.xml
index 0420652..cab361f 100644
--- a/build.xml
+++ b/build.xml
@@ -392,7 +392,6 @@
   
   
   
-  
   
   
   

  1   2   >