[2/3] git commit: Add missing part for CASSANDRA-3668

2014-05-06 Thread yukim
Add missing part for CASSANDRA-3668


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

Branch: refs/heads/trunk
Commit: 9030693180b1e6484ae7d1d44ef6964ca9491f49
Parents: 4f57aa0
Author: Yuki Morishita 
Authored: Tue May 6 19:49:46 2014 -0500
Committer: Yuki Morishita 
Committed: Tue May 6 19:49:46 2014 -0500

--
 src/java/org/apache/cassandra/streaming/StreamResultFuture.java | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/90306931/src/java/org/apache/cassandra/streaming/StreamResultFuture.java
--
diff --git a/src/java/org/apache/cassandra/streaming/StreamResultFuture.java 
b/src/java/org/apache/cassandra/streaming/StreamResultFuture.java
index c04c3f1..cc7abbb 100644
--- a/src/java/org/apache/cassandra/streaming/StreamResultFuture.java
+++ b/src/java/org/apache/cassandra/streaming/StreamResultFuture.java
@@ -179,6 +179,8 @@ public final class StreamResultFuture extends 
AbstractFuture
 {
 logger.info("[Stream #{}] Session with {} is complete", 
session.planId(), session.peer);
 fireStreamEvent(new StreamEvent.SessionCompleteEvent(session));
+SessionInfo sessionInfo = session.getSessionInfo();
+coordinator.addSessionInfo(sessionInfo);
 maybeComplete();
 }
 



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

2014-05-06 Thread yukim
Merge branch 'cassandra-2.1' into trunk


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

Branch: refs/heads/trunk
Commit: b768bb2d6e1d54d90a18bea88f383033a8895458
Parents: 3876ad5 9030693
Author: Yuki Morishita 
Authored: Tue May 6 19:49:54 2014 -0500
Committer: Yuki Morishita 
Committed: Tue May 6 19:49:54 2014 -0500

--
 src/java/org/apache/cassandra/streaming/StreamResultFuture.java | 2 ++
 1 file changed, 2 insertions(+)
--




[1/3] git commit: Add missing part for CASSANDRA-3668

2014-05-06 Thread yukim
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 4f57aa056 -> 903069318
  refs/heads/trunk 3876ad51b -> b768bb2d6


Add missing part for CASSANDRA-3668


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

Branch: refs/heads/cassandra-2.1
Commit: 9030693180b1e6484ae7d1d44ef6964ca9491f49
Parents: 4f57aa0
Author: Yuki Morishita 
Authored: Tue May 6 19:49:46 2014 -0500
Committer: Yuki Morishita 
Committed: Tue May 6 19:49:46 2014 -0500

--
 src/java/org/apache/cassandra/streaming/StreamResultFuture.java | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/90306931/src/java/org/apache/cassandra/streaming/StreamResultFuture.java
--
diff --git a/src/java/org/apache/cassandra/streaming/StreamResultFuture.java 
b/src/java/org/apache/cassandra/streaming/StreamResultFuture.java
index c04c3f1..cc7abbb 100644
--- a/src/java/org/apache/cassandra/streaming/StreamResultFuture.java
+++ b/src/java/org/apache/cassandra/streaming/StreamResultFuture.java
@@ -179,6 +179,8 @@ public final class StreamResultFuture extends 
AbstractFuture
 {
 logger.info("[Stream #{}] Session with {} is complete", 
session.planId(), session.peer);
 fireStreamEvent(new StreamEvent.SessionCompleteEvent(session));
+SessionInfo sessionInfo = session.getSessionInfo();
+coordinator.addSessionInfo(sessionInfo);
 maybeComplete();
 }
 



[jira] [Commented] (CASSANDRA-7165) o.a.c.streaming.StreamingTransferTest unit test failing in 2.1

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler commented on CASSANDRA-7165:
---

Well, random junit timeouts are killing my bisection on the 2G box, too. I've 
tried a couple times and the results are bogus. I'm going to just go with:
{noformat}
commit 44fa2cdb48cf6b4e589d5c48f5c57f0a93c03b60
Author: Joshua McKenzie 
Date:   Thu May 1 17:51:12 2014 -0500

Parallel streaming for sstableloader

patch by Joshua Mckenzie; reviewed by yukim for CASSANDRA-3668
{noformat}

> o.a.c.streaming.StreamingTransferTest unit test failing in 2.1
> --
>
> Key: CASSANDRA-7165
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7165
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Michael Shuler
>Priority: Minor
> Fix For: 2.1 rc1
>
>
> having trouble bisecting this one, due to junit timeouts..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-7165) o.a.c.streaming.StreamingTransferTest unit test failing in 2.1

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler updated CASSANDRA-7165:
--

Assignee: Joshua McKenzie  (was: Michael Shuler)

> o.a.c.streaming.StreamingTransferTest unit test failing in 2.1
> --
>
> Key: CASSANDRA-7165
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7165
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Joshua McKenzie
>Priority: Minor
> Fix For: 2.1 rc1
>
>
> having trouble bisecting this one, due to junit timeouts..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-6861) Optimise our Netty 4 integration

2014-05-06 Thread Benedict (JIRA)

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

Benedict commented on CASSANDRA-6861:
-

Nits:

* frame.release() in the compressors should go in a finally block
* would prefer to catch (Throwable t) and use Java 7's (re)throw where 
possible, instead of always wrapping in IOException
* in the LZ4 compressor, would prefer to grab the array and arrayOffset once 
only, and refer to them from local variables, as each is a virtual method 
invocation so is unlikely to be inlined by the VM.

Otherwise LGTM

> Optimise our Netty 4 integration
> 
>
> Key: CASSANDRA-6861
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6861
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Core
>Reporter: Benedict
>Assignee: T Jake Luciani
>Priority: Minor
>  Labels: performance
> Fix For: 2.1 rc1
>
>
> Now we've upgraded to Netty 4, we're generating a lot of garbage that could 
> be avoided, so we should probably stop that. Should be reasonably easy to 
> hook into Netty's pooled buffers, returning them to the pool once a given 
> message is completed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7165) o.a.c.streaming.StreamingTransferTest unit test failing in 2.1

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler commented on CASSANDRA-7165:
---

2.1 branch fails on the 2G machine on the first try, so at least I have a place 
to bisect/verify the above commit - I'm concerned, however, that I cannot get a 
single run (have run it many, many times) to not timeout on a beefier machine.

{noformat}
test:
 [echo] running unit tests
[mkdir] Created dir: /home/mshuler/git/cassandra/build/test/cassandra
[mkdir] Created dir: /home/mshuler/git/cassandra/build/test/output
[junit] WARNING: multiple versions of ant detected in path for junit 
[junit]  
jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
[junit]  and 
jar:file:/home/mshuler/git/cassandra/build/lib/jars/ant-1.6.5.jar!/org/apache/tools/ant/Project.class
[junit] Testsuite: org.apache.cassandra.streaming.StreamingTransferTest
[junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 21.506 sec
[junit] 
[junit] - Standard Output ---
[junit] WARN  23:35:39 No host ID found, created 
7997a245-fda4-4b58-8733-9595c83a8dc1 (Note: This should happen exactly once per 
node).
[junit] WARN  23:35:39 No host ID found, created 
7997a245-fda4-4b58-8733-9595c83a8dc1 (Note: This should happen exactly once per 
node).
[junit] WARN  23:35:39 Generated random token 
[69049bf190d57a1a8d99d21012b5b8ec]. Random tokens will result in an unbalanced 
ring; see http://wiki.apache.org/cassandra/Operations
[junit] WARN  23:35:39 Generated random token 
[69049bf190d57a1a8d99d21012b5b8ec]. Random tokens will result in an unbalanced 
ring; see http://wiki.apache.org/cassandra/Operations
[junit] -  ---
[junit] Testcase: 
testRequestEmpty(org.apache.cassandra.streaming.StreamingTransferTest):   FAILED
[junit] null
[junit] junit.framework.AssertionFailedError
[junit] at 
org.apache.cassandra.streaming.StreamingTransferTest.testRequestEmpty(StreamingTransferTest.java:117)
[junit] 
[junit] 
[junit] ERROR 23:35:55 Fatal exception in thread 
Thread[StorageServiceShutdownHook,5,main]
[junit] java.lang.IllegalStateException: No configured daemon
[junit] at 
org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:317)
 ~[main/:na]
[junit] at 
org.apache.cassandra.service.StorageService.shutdownClientServers(StorageService.java:389)
 ~[main/:na]
[junit] at 
org.apache.cassandra.service.StorageService.access$000(StorageService.java:105) 
~[main/:na]
[junit] at 
org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:584)
 ~[main/:na]
[junit] at 
org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) 
~[main/:na]
[junit] at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_55]
[junit] ERROR 23:35:55 Fatal exception in thread 
Thread[StorageServiceShutdownHook,5,main]
[junit] java.lang.IllegalStateException: No configured daemon
[junit] at 
org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:317)
 ~[main/:na]
[junit] at 
org.apache.cassandra.service.StorageService.shutdownClientServers(StorageService.java:389)
 ~[main/:na]
[junit] at 
org.apache.cassandra.service.StorageService.access$000(StorageService.java:105) 
~[main/:na]
[junit] at 
org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:584)
 ~[main/:na]
[junit] at 
org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) 
~[main/:na]
[junit] at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_55]
[junit] Test org.apache.cassandra.streaming.StreamingTransferTest FAILED
{noformat}

> o.a.c.streaming.StreamingTransferTest unit test failing in 2.1
> --
>
> Key: CASSANDRA-7165
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7165
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Michael Shuler
>Priority: Minor
> Fix For: 2.1 rc1
>
>
> having trouble bisecting this one, due to junit timeouts..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7165) o.a.c.streaming.StreamingTransferTest unit test failing in 2.1

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler commented on CASSANDRA-7165:
---

This test started failing on cassci May 1:
http://cassci.datastax.com/job/cassandra-2.1_utest/215/testReport/junit/org.apache.cassandra.streaming/StreamingTransferTest/testRequestEmpty/
http://cassci.datastax.com/job/cassandra-2.1_utest/215/
Parallel streaming for sstableloader - 44fa2cdb48cf6b4e589d5c48f5c57f0a93c03b60

The test times out on me on both my main workstations: debian testing 16G/ssd 
and debian testing 8G/rust
The test looped 50+ times successfully on the 2.0 branch just fine on: debian 
stable 2G rackspace vm

> o.a.c.streaming.StreamingTransferTest unit test failing in 2.1
> --
>
> Key: CASSANDRA-7165
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7165
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Michael Shuler
>Priority: Minor
> Fix For: 2.1 rc1
>
>
> having trouble bisecting this one, due to junit timeouts..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7177) Starting threads in the OutboundTcpConnectionPool constructor causes race conditions

2014-05-06 Thread Jason Brown (JIRA)

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

Jason Brown commented on CASSANDRA-7177:


You need to look just a little further, into Thread.interrupted():

{code}
public static boolean interrupted() {
return currentThread().isInterrupted(true);
}
{code}

both currentThread() and isInterrupted() are native.

> Starting threads in the OutboundTcpConnectionPool constructor causes race 
> conditions
> 
>
> Key: CASSANDRA-7177
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7177
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Reporter: Sergio Bossa
>Assignee: Sergio Bossa
> Attachments: CASSANDRA-7177.patch
>
>
> The OutboundTcpConnectionPool starts connection threads in its constructor, 
> causing race conditions when MessagingService#getConnectionPool is 
> concurrently called for the first time for a given address.
> I.e., here's one of the races:
> {noformat}
>  WARN 12:49:03,182 Error processing 
> org.apache.cassandra.metrics:type=Connection,scope=127.0.0.1,name=CommandPendingTasks
> javax.management.InstanceAlreadyExistsException: 
> org.apache.cassandra.metrics:type=Connection,scope=127.0.0.1,name=CommandPendingTasks
>   at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
>   at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
>   at 
> com.yammer.metrics.reporting.JmxReporter.registerBean(JmxReporter.java:464)
>   at 
> com.yammer.metrics.reporting.JmxReporter.processGauge(JmxReporter.java:438)
>   at 
> com.yammer.metrics.reporting.JmxReporter.processGauge(JmxReporter.java:16)
>   at com.yammer.metrics.core.Gauge.processWith(Gauge.java:28)
>   at 
> com.yammer.metrics.reporting.JmxReporter.onMetricAdded(JmxReporter.java:395)
>   at 
> com.yammer.metrics.core.MetricsRegistry.notifyMetricAdded(MetricsRegistry.java:516)
>   at 
> com.yammer.metrics.core.MetricsRegistry.getOrAdd(MetricsRegistry.java:491)
>   at 
> com.yammer.metrics.core.MetricsRegistry.newGauge(MetricsRegistry.java:79)
>   at com.yammer.metrics.Metrics.newGauge(Metrics.java:70)
>   at 
> org.apache.cassandra.metrics.ConnectionMetrics.(ConnectionMetrics.java:71)
>   at 
> org.apache.cassandra.net.OutboundTcpConnectionPool.(OutboundTcpConnectionPool.java:55)
>   at 
> org.apache.cassandra.net.MessagingService.getConnectionPool(MessagingService.java:498)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-6326) Snapshot should create manifest file

2014-05-06 Thread sankalp kohli (JIRA)

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

sankalp kohli updated CASSANDRA-6326:
-

Attachment: trunk-6326_v2.diff

> Snapshot should create manifest file 
> -
>
> Key: CASSANDRA-6326
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6326
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Core
>Reporter: sankalp kohli
>Assignee: sankalp kohli
>Priority: Minor
> Fix For: 2.1 rc1
>
> Attachments: trunk-6326.diff, trunk-6326_v2.diff
>
>
> We should create a manifest file as part of the snapshot which should contain 
> all the stables included in the snapshot. 
> This will be very important for systems consuming this snapshot as they can 
> validate the fact that they got the complete snapshot. 
> If Cassandra crashes mid way creating a snapshot, I think it will create an 
> incomplete snapshot. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-6326) Snapshot should create manifest file

2014-05-06 Thread sankalp kohli (JIRA)

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

sankalp kohli commented on CASSANDRA-6326:
--

The output now looks like this
{"files":["Keyspace1-Standard1-ka-5-Data.db","Keyspace1-Standard1-ka-7-Data.db","Keyspace1-Standard1-ka-8-Data.db","Keyspace1-Standard1-ka-6-Data.db"]}



> Snapshot should create manifest file 
> -
>
> Key: CASSANDRA-6326
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6326
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Core
>Reporter: sankalp kohli
>Assignee: sankalp kohli
>Priority: Minor
> Fix For: 2.1 rc1
>
> Attachments: trunk-6326.diff
>
>
> We should create a manifest file as part of the snapshot which should contain 
> all the stables included in the snapshot. 
> This will be very important for systems consuming this snapshot as they can 
> validate the fact that they got the complete snapshot. 
> If Cassandra crashes mid way creating a snapshot, I think it will create an 
> incomplete snapshot. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7009) topology_test dtest fails in 2.1

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler commented on CASSANDRA-7009:
---

We have some other issues with this test, so thanks for this fix. We'll work on 
the new errors in another ticket.

> topology_test dtest fails in 2.1
> 
>
> Key: CASSANDRA-7009
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7009
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Brandon Williams
>Priority: Blocker
>  Labels: qa-resolved
> Fix For: 2.1 beta2
>
>
> {noformat}
> $ export MAX_HEAP_SIZE="1G"; export HEAP_NEWSIZE="256M"; PRINT_DEBUG=true 
> nosetests --nocapture --nologcapture --verbosity=3 topology_test.py
> nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
> decomission_test (topology_test.TestTopology) ... cluster ccm directory: 
> /tmp/dtest-UhiFiQ
> FAIL
> move_single_node_test (topology_test.TestTopology) ... cluster ccm directory: 
> /tmp/dtest-x1q7pp
> ok
> movement_test (topology_test.TestTopology) ... cluster ccm directory: 
> /tmp/dtest-t6AuXA
> error: For input string: "\-9223372036854775808"
> -- StackTrace --
> java.io.IOException: For input string: "\-9223372036854775808"
> at 
> org.apache.cassandra.service.StorageService.move(StorageService.java:3044)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
> at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
> at 
> com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
> at 
> com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
> at 
> com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
> at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
> at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
> at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
> at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
> at 
> javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1487)
> at 
> javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97)
> at 
> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1328)
> at 
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1420)
> at 
> javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:848)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
> at sun.rmi.transport.Transport$1.run(Transport.java:177)
> at sun.rmi.transport.Transport$1.run(Transport.java:174)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
> at 
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
> at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
> at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> error: For input string: "\-3074457345618258603"
> -- StackTrace --
> java.io.IOException: For input string: "\-3074457345618258603"
> at 
> org.apache.cassandra.service.StorageService.move(StorageService.java:3044)
> at sun.reflect.NativeMethodAcc

[jira] [Updated] (CASSANDRA-7009) topology_test dtest fails in 2.1

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler updated CASSANDRA-7009:
--

Labels: qa-resolved  (was: )

> topology_test dtest fails in 2.1
> 
>
> Key: CASSANDRA-7009
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7009
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Brandon Williams
>Priority: Blocker
>  Labels: qa-resolved
> Fix For: 2.1 beta2
>
>
> {noformat}
> $ export MAX_HEAP_SIZE="1G"; export HEAP_NEWSIZE="256M"; PRINT_DEBUG=true 
> nosetests --nocapture --nologcapture --verbosity=3 topology_test.py
> nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
> decomission_test (topology_test.TestTopology) ... cluster ccm directory: 
> /tmp/dtest-UhiFiQ
> FAIL
> move_single_node_test (topology_test.TestTopology) ... cluster ccm directory: 
> /tmp/dtest-x1q7pp
> ok
> movement_test (topology_test.TestTopology) ... cluster ccm directory: 
> /tmp/dtest-t6AuXA
> error: For input string: "\-9223372036854775808"
> -- StackTrace --
> java.io.IOException: For input string: "\-9223372036854775808"
> at 
> org.apache.cassandra.service.StorageService.move(StorageService.java:3044)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
> at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
> at 
> com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
> at 
> com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
> at 
> com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
> at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
> at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
> at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
> at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
> at 
> javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1487)
> at 
> javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97)
> at 
> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1328)
> at 
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1420)
> at 
> javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:848)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
> at sun.rmi.transport.Transport$1.run(Transport.java:177)
> at sun.rmi.transport.Transport$1.run(Transport.java:174)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
> at 
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
> at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
> at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> error: For input string: "\-3074457345618258603"
> -- StackTrace --
> java.io.IOException: For input string: "\-3074457345618258603"
> at 
> org.apache.cassandra.service.StorageService.move(StorageService.java:3044)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at

[jira] [Commented] (CASSANDRA-7177) Starting threads in the OutboundTcpConnectionPool constructor causes race conditions

2014-05-06 Thread Sergio Bossa (JIRA)

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

Sergio Bossa commented on CASSANDRA-7177:
-

Which native calls? AQS#tryAcquireShared implementation in CountDownLatch is 
called first, which is implemented as follows:
{noformat}
return getState() == 0? 1 : -1;
{noformat}
Which will cause the following to return straight away:
{noformat}
public final boolean tryAcquireSharedNanos(int arg, long nanosTimeout) 
throws InterruptedException {
if (Thread.interrupted())
throw new InterruptedException();
return tryAcquireShared(arg) >= 0 || doAcquireSharedNanos(arg, 
nanosTimeout);
}
{noformat}

Or am I missing something? Just curious, I'm fine both ways in the end :)

> Starting threads in the OutboundTcpConnectionPool constructor causes race 
> conditions
> 
>
> Key: CASSANDRA-7177
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7177
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Reporter: Sergio Bossa
>Assignee: Sergio Bossa
> Attachments: CASSANDRA-7177.patch
>
>
> The OutboundTcpConnectionPool starts connection threads in its constructor, 
> causing race conditions when MessagingService#getConnectionPool is 
> concurrently called for the first time for a given address.
> I.e., here's one of the races:
> {noformat}
>  WARN 12:49:03,182 Error processing 
> org.apache.cassandra.metrics:type=Connection,scope=127.0.0.1,name=CommandPendingTasks
> javax.management.InstanceAlreadyExistsException: 
> org.apache.cassandra.metrics:type=Connection,scope=127.0.0.1,name=CommandPendingTasks
>   at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
>   at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
>   at 
> com.yammer.metrics.reporting.JmxReporter.registerBean(JmxReporter.java:464)
>   at 
> com.yammer.metrics.reporting.JmxReporter.processGauge(JmxReporter.java:438)
>   at 
> com.yammer.metrics.reporting.JmxReporter.processGauge(JmxReporter.java:16)
>   at com.yammer.metrics.core.Gauge.processWith(Gauge.java:28)
>   at 
> com.yammer.metrics.reporting.JmxReporter.onMetricAdded(JmxReporter.java:395)
>   at 
> com.yammer.metrics.core.MetricsRegistry.notifyMetricAdded(MetricsRegistry.java:516)
>   at 
> com.yammer.metrics.core.MetricsRegistry.getOrAdd(MetricsRegistry.java:491)
>   at 
> com.yammer.metrics.core.MetricsRegistry.newGauge(MetricsRegistry.java:79)
>   at com.yammer.metrics.Metrics.newGauge(Metrics.java:70)
>   at 
> org.apache.cassandra.metrics.ConnectionMetrics.(ConnectionMetrics.java:71)
>   at 
> org.apache.cassandra.net.OutboundTcpConnectionPool.(OutboundTcpConnectionPool.java:55)
>   at 
> org.apache.cassandra.net.MessagingService.getConnectionPool(MessagingService.java:498)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7162) o.a.c.db.marshal.CollectionTypeTest unit test failing in 2.1

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler commented on CASSANDRA-7162:
---

Thanks - lgtm

> o.a.c.db.marshal.CollectionTypeTest unit test failing in 2.1
> 
>
> Key: CASSANDRA-7162
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7162
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Sylvain Lebresne
>Priority: Minor
> Fix For: 2.1 rc1
>
> Attachments: 7162.txt
>
>
> bisecting..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7084) o.a.c.db.RecoveryManagerTest.testNothingToRecover Unit Test Flaps in 2.0

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler commented on CASSANDRA-7084:
---

The patch didn't apply cleanly to the cassandra-2.0 branch, but it was just one 
line to correct.
I ran 60+ successful loops over RecoveryManagerTest, so that looks ok to me - 
thanks. I'm not sure if you'd like to keep digging on this, but let me know if 
you'd like me to test out some other change further or if you're happy with the 
fix.

> o.a.c.db.RecoveryManagerTest.testNothingToRecover Unit Test Flaps in 2.0
> 
>
> Key: CASSANDRA-7084
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7084
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Benedict
>Priority: Minor
> Fix For: 2.0.8
>
> Attachments: 7084.txt
>
>
> Example:
>   http://cassci.datastax.com/job/cassandra-2.0_utest/326/
> (this test appears to pass consistently in 1.2 and 2.1 with a quick glance - 
> will test out the other branches more thoroughly and bisect)
> {noformat}
> REGRESSION:  org.apache.cassandra.db.RecoveryManagerTest.testNothingToRecover
> Error Message:
> java.io.FileNotFoundException: 
> /var/lib/jenkins/jobs/cassandra-2.0_test/workspace/build/test/cassandra/commitlog/CommitLog-3-1398354429966.log
>  (No such file or directory)
> Stack Trace:
> java.lang.RuntimeException: java.io.FileNotFoundException: 
> /var/lib/jenkins/jobs/cassandra-2.0_test/workspace/build/test/cassandra/commitlog/CommitLog-3-1398354429966.log
>  (No such file or directory)
>   at 
> org.apache.cassandra.io.util.RandomAccessReader.open(RandomAccessReader.java:102)
>   at 
> org.apache.cassandra.io.util.RandomAccessReader.open(RandomAccessReader.java:90)
>   at 
> org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:186)
>   at 
> org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:95)
>   at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:151)
>   at 
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:131)
>   at 
> org.apache.cassandra.db.RecoveryManagerTest.testNothingToRecover(RecoveryManagerTest.java:42)
> Caused by: java.io.FileNotFoundException: 
> /var/lib/jenkins/jobs/cassandra-2.0_test/workspace/build/test/cassandra/commitlog/CommitLog-3-1398354429966.log
>  (No such file or directory)
>   at java.io.RandomAccessFile.open(Native Method)
>   at java.io.RandomAccessFile.(RandomAccessFile.java:241)
>   at 
> org.apache.cassandra.io.util.RandomAccessReader.(RandomAccessReader.java:58)
>   at 
> org.apache.cassandra.io.util.RandomAccessReader.open(RandomAccessReader.java:98)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7122) Replacement nodes have null entries in system.peers

2014-05-06 Thread Richard Low (JIRA)

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

Richard Low commented on CASSANDRA-7122:


Oh right, sorry for the ambiguity. Thanks for the fix!

> Replacement nodes have null entries in system.peers
> ---
>
> Key: CASSANDRA-7122
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7122
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Richard Low
>Assignee: Brandon Williams
> Fix For: 1.2.17, 2.0.9, 2.1 rc1
>
> Attachments: 7122.txt
>
>
> If a node is replaced with -Dcassandra.replace_address, the new node has 
> mostly null entries in system.peers:
> {code}
> > select * from system.peers;
>  peer  | data_center | host_id | rack | release_version | rpc_address | 
> schema_version | tokens
> ---+-+-+--+-+-++--
>  127.0.0.3 |null |null | null |null |null |   
> null | {'-3074457345618258602'}
> {code}
> To reproduce, simply kill a node and replace it. The entries are correctly 
> populated if the replacement node is restarted but they are never populated 
> if it isn't.
> I can think of at least two bad consequences of this:
> 1. Drivers like Datastax java-driver use the peers table to find the 
> rpc_address and location info of a node. If the entires are null it assumes 
> rpc_address=ip and the node is in the local DC.
> 2. When using GossipingPropertyFileSnitch and node won't persist the DC/rack 
> of another node so may not be able to locate it during restarts.
> I reproduced in 1.2.15 but from inspection it looks to be present in 1.2.16 
> and 2.0.7.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7177) Starting threads in the OutboundTcpConnectionPool constructor causes race conditions

2014-05-06 Thread Jason Brown (JIRA)

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

Jason Brown commented on CASSANDRA-7177:


While I do see the comment in the CDL javadoc now ("This method is typically 
used for debugging and testing purposes"), if you look at the implementation of 
ASQ.tryAcquireSharedNanos(), it's not entirely free nor "returns straight away" 
as two native calls are made. However, I'm not wedded to the 
micro-optimization, and can commit either way.

> Starting threads in the OutboundTcpConnectionPool constructor causes race 
> conditions
> 
>
> Key: CASSANDRA-7177
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7177
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Reporter: Sergio Bossa
>Assignee: Sergio Bossa
> Attachments: CASSANDRA-7177.patch
>
>
> The OutboundTcpConnectionPool starts connection threads in its constructor, 
> causing race conditions when MessagingService#getConnectionPool is 
> concurrently called for the first time for a given address.
> I.e., here's one of the races:
> {noformat}
>  WARN 12:49:03,182 Error processing 
> org.apache.cassandra.metrics:type=Connection,scope=127.0.0.1,name=CommandPendingTasks
> javax.management.InstanceAlreadyExistsException: 
> org.apache.cassandra.metrics:type=Connection,scope=127.0.0.1,name=CommandPendingTasks
>   at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
>   at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
>   at 
> com.yammer.metrics.reporting.JmxReporter.registerBean(JmxReporter.java:464)
>   at 
> com.yammer.metrics.reporting.JmxReporter.processGauge(JmxReporter.java:438)
>   at 
> com.yammer.metrics.reporting.JmxReporter.processGauge(JmxReporter.java:16)
>   at com.yammer.metrics.core.Gauge.processWith(Gauge.java:28)
>   at 
> com.yammer.metrics.reporting.JmxReporter.onMetricAdded(JmxReporter.java:395)
>   at 
> com.yammer.metrics.core.MetricsRegistry.notifyMetricAdded(MetricsRegistry.java:516)
>   at 
> com.yammer.metrics.core.MetricsRegistry.getOrAdd(MetricsRegistry.java:491)
>   at 
> com.yammer.metrics.core.MetricsRegistry.newGauge(MetricsRegistry.java:79)
>   at com.yammer.metrics.Metrics.newGauge(Metrics.java:70)
>   at 
> org.apache.cassandra.metrics.ConnectionMetrics.(ConnectionMetrics.java:71)
>   at 
> org.apache.cassandra.net.OutboundTcpConnectionPool.(OutboundTcpConnectionPool.java:55)
>   at 
> org.apache.cassandra.net.MessagingService.getConnectionPool(MessagingService.java:498)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7177) Starting threads in the OutboundTcpConnectionPool constructor causes race conditions

2014-05-06 Thread Sergio Bossa (JIRA)

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

Sergio Bossa commented on CASSANDRA-7177:
-

CountDownLatch#getCount() should only be used for debugging purposes, as 
await() returns straight away if the count is 0, so I'd say that's unnecessary.

> Starting threads in the OutboundTcpConnectionPool constructor causes race 
> conditions
> 
>
> Key: CASSANDRA-7177
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7177
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Reporter: Sergio Bossa
>Assignee: Sergio Bossa
> Attachments: CASSANDRA-7177.patch
>
>
> The OutboundTcpConnectionPool starts connection threads in its constructor, 
> causing race conditions when MessagingService#getConnectionPool is 
> concurrently called for the first time for a given address.
> I.e., here's one of the races:
> {noformat}
>  WARN 12:49:03,182 Error processing 
> org.apache.cassandra.metrics:type=Connection,scope=127.0.0.1,name=CommandPendingTasks
> javax.management.InstanceAlreadyExistsException: 
> org.apache.cassandra.metrics:type=Connection,scope=127.0.0.1,name=CommandPendingTasks
>   at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
>   at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
>   at 
> com.yammer.metrics.reporting.JmxReporter.registerBean(JmxReporter.java:464)
>   at 
> com.yammer.metrics.reporting.JmxReporter.processGauge(JmxReporter.java:438)
>   at 
> com.yammer.metrics.reporting.JmxReporter.processGauge(JmxReporter.java:16)
>   at com.yammer.metrics.core.Gauge.processWith(Gauge.java:28)
>   at 
> com.yammer.metrics.reporting.JmxReporter.onMetricAdded(JmxReporter.java:395)
>   at 
> com.yammer.metrics.core.MetricsRegistry.notifyMetricAdded(MetricsRegistry.java:516)
>   at 
> com.yammer.metrics.core.MetricsRegistry.getOrAdd(MetricsRegistry.java:491)
>   at 
> com.yammer.metrics.core.MetricsRegistry.newGauge(MetricsRegistry.java:79)
>   at com.yammer.metrics.Metrics.newGauge(Metrics.java:70)
>   at 
> org.apache.cassandra.metrics.ConnectionMetrics.(ConnectionMetrics.java:71)
>   at 
> org.apache.cassandra.net.OutboundTcpConnectionPool.(OutboundTcpConnectionPool.java:55)
>   at 
> org.apache.cassandra.net.MessagingService.getConnectionPool(MessagingService.java:498)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-7164) o.a.c.service.RemoveTest unit test failing in 2.1

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler updated CASSANDRA-7164:
--

Labels: qa-resolved  (was: )

> o.a.c.service.RemoveTest unit test failing in 2.1
> -
>
> Key: CASSANDRA-7164
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7164
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Joshua McKenzie
>Priority: Minor
>  Labels: qa-resolved
> Fix For: 2.1 rc1
>
> Attachments: 7164_v1.txt
>
>
> bisecting..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7164) o.a.c.service.RemoveTest unit test failing in 2.1

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler commented on CASSANDRA-7164:
---

60+ successful loops over the test. Thanks!

> o.a.c.service.RemoveTest unit test failing in 2.1
> -
>
> Key: CASSANDRA-7164
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7164
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Joshua McKenzie
>Priority: Minor
>  Labels: qa-resolved
> Fix For: 2.1 rc1
>
> Attachments: 7164_v1.txt
>
>
> bisecting..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[08/13] git commit: merge

2014-05-06 Thread brandonwilliams
merge


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

Branch: refs/heads/cassandra-2.1
Commit: 0a09edc8180d4b0dae8c56dd64a1b1c531d684f8
Parents: b17629c
Author: Brandon Williams 
Authored: Tue May 6 16:12:58 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:12:58 2014 -0500

--
 .../org/apache/cassandra/service/StorageService.java| 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0a09edc8/src/java/org/apache/cassandra/service/StorageService.java
--
diff --git a/src/java/org/apache/cassandra/service/StorageService.java 
b/src/java/org/apache/cassandra/service/StorageService.java
index 38f1a99..0300f55 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -1433,22 +1433,22 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 switch (entry.getKey())
 {
 case RELEASE_VERSION:
-SystemTable.updatePeerInfo(endpoint, "release_version", 
quote(entry.getValue().value));
+SystemKeyspace.updatePeerInfo(endpoint, "release_version", 
quote(entry.getValue().value));
 break;
 case DC:
-SystemTable.updatePeerInfo(endpoint, "data_center", 
quote(entry.getValue().value));
+SystemKeyspace.updatePeerInfo(endpoint, "data_center", 
quote(entry.getValue().value));
 break;
 case RACK:
-SystemTable.updatePeerInfo(endpoint, "rack", 
quote(entry.getValue().value));
+SystemKeyspace.updatePeerInfo(endpoint, "rack", 
quote(entry.getValue().value));
 break;
 case RPC_ADDRESS:
-SystemTable.updatePeerInfo(endpoint, "rpc_address", 
quote(entry.getValue().value));
+SystemKeyspace.updatePeerInfo(endpoint, "rpc_address", 
quote(entry.getValue().value));
 break;
 case SCHEMA:
-SystemTable.updatePeerInfo(endpoint, "schema_version", 
entry.getValue().value);
+SystemKeyspace.updatePeerInfo(endpoint, "schema_version", 
entry.getValue().value);
 break;
 case HOST_ID:
-SystemTable.updatePeerInfo(endpoint, "host_id", 
entry.getValue().value);
+SystemKeyspace.updatePeerInfo(endpoint, "host_id", 
entry.getValue().value);
 break;
 }
 }



[jira] [Commented] (CASSANDRA-7168) Add repair aware consistency levels

2014-05-06 Thread T Jake Luciani (JIRA)

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

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

I think aggregations for 3.0 is reasonable.

> Add repair aware consistency levels
> ---
>
> Key: CASSANDRA-7168
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7168
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Core
>Reporter: T Jake Luciani
>  Labels: performance
> Fix For: 3.0
>
>
> With CASSANDRA-5351 and CASSANDRA-2424 I think there is an opportunity to 
> avoid a lot of extra disk I/O when running queries with higher consistency 
> levels.  
> Since repaired data is by definition consistent and we know which sstables 
> are repaired, we can optimize the read path by having a REPAIRED_QUORUM which 
> breaks reads into two phases:
>  
>   1) Read from one replica the result from the repaired sstables. 
>   2) Read from a quorum only the un-repaired data.
> For the node performing 1) we can pipeline the call so it's a single hop.
> In the long run (assuming data is repaired regularly) we will end up with 
> much closer to CL.ONE performance while maintaining consistency.
> Some things to figure out:
>   - If repairs fail on some nodes we can have a situation where we don't have 
> a consistent repaired state across the replicas.  
>   



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[06/13] git commit: Merge branch 'cassandra-1.2' into cassandra-2.0

2014-05-06 Thread brandonwilliams
Merge branch 'cassandra-1.2' into cassandra-2.0


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

Branch: refs/heads/trunk
Commit: b17629cafcf17487971eba80f1443c00ad4e25ea
Parents: 8d93c1f f4460a5
Author: Brandon Williams 
Authored: Tue May 6 16:10:52 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:10:52 2014 -0500

--
 .../cassandra/service/StorageService.java   | 30 
 1 file changed, 30 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/b17629ca/src/java/org/apache/cassandra/service/StorageService.java
--



[03/13] git commit: Update peer information when a node jumps to normal.

2014-05-06 Thread brandonwilliams
Update peer information when a node jumps to normal.

Patch by brandonwilliams, reviewed by Richard Low for CASSANDRA-7122


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

Branch: refs/heads/cassandra-2.0
Commit: f4460a55b85759d2a631a2d931f10106e1748770
Parents: 64394b2
Author: Brandon Williams 
Authored: Tue May 6 16:10:10 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:10:10 2014 -0500

--
 .../cassandra/service/StorageService.java   | 30 
 1 file changed, 30 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/f4460a55/src/java/org/apache/cassandra/service/StorageService.java
--
diff --git a/src/java/org/apache/cassandra/service/StorageService.java 
b/src/java/org/apache/cassandra/service/StorageService.java
index bfca642..ed6d031 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -1383,6 +1383,35 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 }
 }
 
+private void updatePeerInfo(InetAddress endpoint)
+{
+EndpointState epState = 
Gossiper.instance.getEndpointStateForEndpoint(endpoint);
+for (Map.Entry entry : 
epState.getApplicationStateMap().entrySet())
+{
+switch (entry.getKey())
+{
+case RELEASE_VERSION:
+SystemTable.updatePeerInfo(endpoint, "release_version", 
quote(entry.getValue().value));
+break;
+case DC:
+SystemTable.updatePeerInfo(endpoint, "data_center", 
quote(entry.getValue().value));
+break;
+case RACK:
+SystemTable.updatePeerInfo(endpoint, "rack", 
quote(entry.getValue().value));
+break;
+case RPC_ADDRESS:
+SystemTable.updatePeerInfo(endpoint, "rpc_address", 
quote(entry.getValue().value));
+break;
+case SCHEMA:
+SystemTable.updatePeerInfo(endpoint, "schema_version", 
entry.getValue().value);
+break;
+case HOST_ID:
+SystemTable.updatePeerInfo(endpoint, "host_id", 
entry.getValue().value);
+break;
+}
+}
+}
+
 private String quote(String value)
 {
 return "'" + value + "'";
@@ -1484,6 +1513,7 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 if (tokenMetadata.isMember(endpoint))
 logger.info("Node " + endpoint + " state jump to normal");
 
+updatePeerInfo(endpoint);
 // Order Matters, TM.updateHostID() should be called before 
TM.updateNormalToken(), (see CASSANDRA-4300).
 if (Gossiper.instance.usesHostId(endpoint))
 {



[jira] [Created] (CASSANDRA-7181) Remove unused method isLocalTask() in o.a.c.repair.StreamingRepairTask

2014-05-06 Thread Lyuben Todorov (JIRA)
Lyuben Todorov created CASSANDRA-7181:
-

 Summary: Remove unused method isLocalTask() in 
o.a.c.repair.StreamingRepairTask
 Key: CASSANDRA-7181
 URL: https://issues.apache.org/jira/browse/CASSANDRA-7181
 Project: Cassandra
  Issue Type: Wish
Reporter: Lyuben Todorov
Assignee: Lyuben Todorov
Priority: Trivial
 Attachments: 
cassandra-2.1-remove-o.a.c.repair.StreamingRepairTask.isLocalTask.diff

Not sure if the method is used by any other tools /cc [~beobal]  but based on 
info from #cassandra-dev it is not. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7177) Starting threads in the OutboundTcpConnectionPool constructor causes race conditions

2014-05-06 Thread Jason Brown (JIRA)

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

Jason Brown commented on CASSANDRA-7177:


Patch looks fine overall, but I'd add a small optimization to the top of OTCP. 
waitForStarted()

{code}
public void waitForStarted()
{
if (started.getCount() == 0)
return;

}
{code}

Seem reasonable?

> Starting threads in the OutboundTcpConnectionPool constructor causes race 
> conditions
> 
>
> Key: CASSANDRA-7177
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7177
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Reporter: Sergio Bossa
>Assignee: Sergio Bossa
> Attachments: CASSANDRA-7177.patch
>
>
> The OutboundTcpConnectionPool starts connection threads in its constructor, 
> causing race conditions when MessagingService#getConnectionPool is 
> concurrently called for the first time for a given address.
> I.e., here's one of the races:
> {noformat}
>  WARN 12:49:03,182 Error processing 
> org.apache.cassandra.metrics:type=Connection,scope=127.0.0.1,name=CommandPendingTasks
> javax.management.InstanceAlreadyExistsException: 
> org.apache.cassandra.metrics:type=Connection,scope=127.0.0.1,name=CommandPendingTasks
>   at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
>   at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
>   at 
> com.yammer.metrics.reporting.JmxReporter.registerBean(JmxReporter.java:464)
>   at 
> com.yammer.metrics.reporting.JmxReporter.processGauge(JmxReporter.java:438)
>   at 
> com.yammer.metrics.reporting.JmxReporter.processGauge(JmxReporter.java:16)
>   at com.yammer.metrics.core.Gauge.processWith(Gauge.java:28)
>   at 
> com.yammer.metrics.reporting.JmxReporter.onMetricAdded(JmxReporter.java:395)
>   at 
> com.yammer.metrics.core.MetricsRegistry.notifyMetricAdded(MetricsRegistry.java:516)
>   at 
> com.yammer.metrics.core.MetricsRegistry.getOrAdd(MetricsRegistry.java:491)
>   at 
> com.yammer.metrics.core.MetricsRegistry.newGauge(MetricsRegistry.java:79)
>   at com.yammer.metrics.Metrics.newGauge(Metrics.java:70)
>   at 
> org.apache.cassandra.metrics.ConnectionMetrics.(ConnectionMetrics.java:71)
>   at 
> org.apache.cassandra.net.OutboundTcpConnectionPool.(OutboundTcpConnectionPool.java:55)
>   at 
> org.apache.cassandra.net.MessagingService.getConnectionPool(MessagingService.java:498)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[07/13] git commit: Merge branch 'cassandra-1.2' into cassandra-2.0

2014-05-06 Thread brandonwilliams
Merge branch 'cassandra-1.2' into cassandra-2.0


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

Branch: refs/heads/cassandra-2.0
Commit: b17629cafcf17487971eba80f1443c00ad4e25ea
Parents: 8d93c1f f4460a5
Author: Brandon Williams 
Authored: Tue May 6 16:10:52 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:10:52 2014 -0500

--
 .../cassandra/service/StorageService.java   | 30 
 1 file changed, 30 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/b17629ca/src/java/org/apache/cassandra/service/StorageService.java
--



[jira] [Commented] (CASSANDRA-6326) Snapshot should create manifest file

2014-05-06 Thread sankalp kohli (JIRA)

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

sankalp kohli commented on CASSANDRA-6326:
--

Sure. Let me update the output format. 

> Snapshot should create manifest file 
> -
>
> Key: CASSANDRA-6326
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6326
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Core
>Reporter: sankalp kohli
>Assignee: sankalp kohli
>Priority: Minor
> Fix For: 2.1 rc1
>
> Attachments: trunk-6326.diff
>
>
> We should create a manifest file as part of the snapshot which should contain 
> all the stables included in the snapshot. 
> This will be very important for systems consuming this snapshot as they can 
> validate the fact that they got the complete snapshot. 
> If Cassandra crashes mid way creating a snapshot, I think it will create an 
> incomplete snapshot. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams commented on CASSANDRA-7179:
-

Unsetting versions because there's no way this affected b1 or b2, only 
2.1/trunk head from today, but once you pull the corrupted jars they can stick 
around unless you clean ~/.m2

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>  Labels: qa-resolved
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-6357) Flush memtables to separate directory

2014-05-06 Thread Benedict (JIRA)

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

Benedict commented on CASSANDRA-6357:
-

Unfortunately I can't get the revert patch to apply, but it looks to me that 
either it's missing some reverts of method names in Directories or calls to 
getDirectoryForCompactedSSTables()  should not have been reverted to 
getDirectoryForNewSSTables() 

> Flush memtables to separate directory
> -
>
> Key: CASSANDRA-6357
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6357
> Project: Cassandra
>  Issue Type: New Feature
>  Components: Core
>Reporter: Patrick McFadin
>Assignee: Jonathan Ellis
>Priority: Minor
>  Labels: performance
> Fix For: 2.1 rc1
>
> Attachments: 6357-revert-v2.txt, 6357-revert.txt, 6357-v2.txt, 
> 6357.txt, c6357-2.1-stress-write-adj-ops-sec.png, 
> c6357-2.1-stress-write-latency-99th.png, 
> c6357-2.1-stress-write-latency-median.png, 
> c6357-stress-write-latency-99th-1.png
>
>
> Flush writers are a critical element for keeping a node healthy. When several 
> compactions run on systems with low performing data directories, IO becomes a 
> premium. Once the disk subsystem is saturated, write IO is blocked which will 
> cause flush writer threads to backup. Since memtables are large blocks of 
> memory in the JVM, too much blocking can cause excessive GC over time 
> degrading performance. In the worst case causing an OOM.
> Since compaction is running on the data directories. My proposal is to create 
> a separate directory for flushing memtables. Potentially we can use the same 
> methodology of keeping the commit log separate and minimize disk contention 
> against the critical function of the flushwriter. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-7181) Remove unused method isLocalTask() in o.a.c.repair.StreamingRepairTask

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams updated CASSANDRA-7181:


Reviewer: Yuki Morishita

> Remove unused method isLocalTask() in o.a.c.repair.StreamingRepairTask
> --
>
> Key: CASSANDRA-7181
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7181
> Project: Cassandra
>  Issue Type: Wish
>Reporter: Lyuben Todorov
>Assignee: Lyuben Todorov
>Priority: Trivial
> Attachments: 
> cassandra-2.1-remove-o.a.c.repair.StreamingRepairTask.isLocalTask.diff
>
>
> Not sure if the method is used by any other tools /cc [~beobal]  but based on 
> info from #cassandra-dev it is not. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[01/13] git commit: Update peer information when a node jumps to normal.

2014-05-06 Thread brandonwilliams
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-1.2 64394b252 -> f4460a55b
  refs/heads/cassandra-2.0 8d93c1fcb -> 0a09edc81
  refs/heads/cassandra-2.1 60faac434 -> 4f57aa056
  refs/heads/trunk 07dcc9973 -> 3876ad51b


Update peer information when a node jumps to normal.

Patch by brandonwilliams, reviewed by Richard Low for CASSANDRA-7122


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

Branch: refs/heads/cassandra-1.2
Commit: f4460a55b85759d2a631a2d931f10106e1748770
Parents: 64394b2
Author: Brandon Williams 
Authored: Tue May 6 16:10:10 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:10:10 2014 -0500

--
 .../cassandra/service/StorageService.java   | 30 
 1 file changed, 30 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/f4460a55/src/java/org/apache/cassandra/service/StorageService.java
--
diff --git a/src/java/org/apache/cassandra/service/StorageService.java 
b/src/java/org/apache/cassandra/service/StorageService.java
index bfca642..ed6d031 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -1383,6 +1383,35 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 }
 }
 
+private void updatePeerInfo(InetAddress endpoint)
+{
+EndpointState epState = 
Gossiper.instance.getEndpointStateForEndpoint(endpoint);
+for (Map.Entry entry : 
epState.getApplicationStateMap().entrySet())
+{
+switch (entry.getKey())
+{
+case RELEASE_VERSION:
+SystemTable.updatePeerInfo(endpoint, "release_version", 
quote(entry.getValue().value));
+break;
+case DC:
+SystemTable.updatePeerInfo(endpoint, "data_center", 
quote(entry.getValue().value));
+break;
+case RACK:
+SystemTable.updatePeerInfo(endpoint, "rack", 
quote(entry.getValue().value));
+break;
+case RPC_ADDRESS:
+SystemTable.updatePeerInfo(endpoint, "rpc_address", 
quote(entry.getValue().value));
+break;
+case SCHEMA:
+SystemTable.updatePeerInfo(endpoint, "schema_version", 
entry.getValue().value);
+break;
+case HOST_ID:
+SystemTable.updatePeerInfo(endpoint, "host_id", 
entry.getValue().value);
+break;
+}
+}
+}
+
 private String quote(String value)
 {
 return "'" + value + "'";
@@ -1484,6 +1513,7 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 if (tokenMetadata.isMember(endpoint))
 logger.info("Node " + endpoint + " state jump to normal");
 
+updatePeerInfo(endpoint);
 // Order Matters, TM.updateHostID() should be called before 
TM.updateNormalToken(), (see CASSANDRA-4300).
 if (Gossiper.instance.usesHostId(endpoint))
 {



[jira] [Commented] (CASSANDRA-7181) Remove unused method isLocalTask() in o.a.c.repair.StreamingRepairTask

2014-05-06 Thread Lyuben Todorov (JIRA)

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

Lyuben Todorov commented on CASSANDRA-7181:
---

Patch should apply cleanly to 2.1 and trunk.

> Remove unused method isLocalTask() in o.a.c.repair.StreamingRepairTask
> --
>
> Key: CASSANDRA-7181
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7181
> Project: Cassandra
>  Issue Type: Wish
>Reporter: Lyuben Todorov
>Assignee: Lyuben Todorov
>Priority: Trivial
> Attachments: 
> cassandra-2.1-remove-o.a.c.repair.StreamingRepairTask.isLocalTask.diff
>
>
> Not sure if the method is used by any other tools /cc [~beobal]  but based on 
> info from #cassandra-dev it is not. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[10/13] git commit: merge

2014-05-06 Thread brandonwilliams
merge


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

Branch: refs/heads/cassandra-2.0
Commit: 0a09edc8180d4b0dae8c56dd64a1b1c531d684f8
Parents: b17629c
Author: Brandon Williams 
Authored: Tue May 6 16:12:58 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:12:58 2014 -0500

--
 .../org/apache/cassandra/service/StorageService.java| 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0a09edc8/src/java/org/apache/cassandra/service/StorageService.java
--
diff --git a/src/java/org/apache/cassandra/service/StorageService.java 
b/src/java/org/apache/cassandra/service/StorageService.java
index 38f1a99..0300f55 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -1433,22 +1433,22 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 switch (entry.getKey())
 {
 case RELEASE_VERSION:
-SystemTable.updatePeerInfo(endpoint, "release_version", 
quote(entry.getValue().value));
+SystemKeyspace.updatePeerInfo(endpoint, "release_version", 
quote(entry.getValue().value));
 break;
 case DC:
-SystemTable.updatePeerInfo(endpoint, "data_center", 
quote(entry.getValue().value));
+SystemKeyspace.updatePeerInfo(endpoint, "data_center", 
quote(entry.getValue().value));
 break;
 case RACK:
-SystemTable.updatePeerInfo(endpoint, "rack", 
quote(entry.getValue().value));
+SystemKeyspace.updatePeerInfo(endpoint, "rack", 
quote(entry.getValue().value));
 break;
 case RPC_ADDRESS:
-SystemTable.updatePeerInfo(endpoint, "rpc_address", 
quote(entry.getValue().value));
+SystemKeyspace.updatePeerInfo(endpoint, "rpc_address", 
quote(entry.getValue().value));
 break;
 case SCHEMA:
-SystemTable.updatePeerInfo(endpoint, "schema_version", 
entry.getValue().value);
+SystemKeyspace.updatePeerInfo(endpoint, "schema_version", 
entry.getValue().value);
 break;
 case HOST_ID:
-SystemTable.updatePeerInfo(endpoint, "host_id", 
entry.getValue().value);
+SystemKeyspace.updatePeerInfo(endpoint, "host_id", 
entry.getValue().value);
 break;
 }
 }



[09/13] git commit: merge

2014-05-06 Thread brandonwilliams
merge


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

Branch: refs/heads/trunk
Commit: 0a09edc8180d4b0dae8c56dd64a1b1c531d684f8
Parents: b17629c
Author: Brandon Williams 
Authored: Tue May 6 16:12:58 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:12:58 2014 -0500

--
 .../org/apache/cassandra/service/StorageService.java| 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0a09edc8/src/java/org/apache/cassandra/service/StorageService.java
--
diff --git a/src/java/org/apache/cassandra/service/StorageService.java 
b/src/java/org/apache/cassandra/service/StorageService.java
index 38f1a99..0300f55 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -1433,22 +1433,22 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 switch (entry.getKey())
 {
 case RELEASE_VERSION:
-SystemTable.updatePeerInfo(endpoint, "release_version", 
quote(entry.getValue().value));
+SystemKeyspace.updatePeerInfo(endpoint, "release_version", 
quote(entry.getValue().value));
 break;
 case DC:
-SystemTable.updatePeerInfo(endpoint, "data_center", 
quote(entry.getValue().value));
+SystemKeyspace.updatePeerInfo(endpoint, "data_center", 
quote(entry.getValue().value));
 break;
 case RACK:
-SystemTable.updatePeerInfo(endpoint, "rack", 
quote(entry.getValue().value));
+SystemKeyspace.updatePeerInfo(endpoint, "rack", 
quote(entry.getValue().value));
 break;
 case RPC_ADDRESS:
-SystemTable.updatePeerInfo(endpoint, "rpc_address", 
quote(entry.getValue().value));
+SystemKeyspace.updatePeerInfo(endpoint, "rpc_address", 
quote(entry.getValue().value));
 break;
 case SCHEMA:
-SystemTable.updatePeerInfo(endpoint, "schema_version", 
entry.getValue().value);
+SystemKeyspace.updatePeerInfo(endpoint, "schema_version", 
entry.getValue().value);
 break;
 case HOST_ID:
-SystemTable.updatePeerInfo(endpoint, "host_id", 
entry.getValue().value);
+SystemKeyspace.updatePeerInfo(endpoint, "host_id", 
entry.getValue().value);
 break;
 }
 }



[jira] [Commented] (CASSANDRA-7178) o.a.c.db.DirectoriesTest unit test flaps in 1.2

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler commented on CASSANDRA-7178:
---

musical bisect commits.. 4 runs with 4 different commits returned, 2 of which 
were changelog and comments..  all were run with 25x=good, and my starting 
commit 6677d075 looped 250x without failing

I'll pick this up again..

> o.a.c.db.DirectoriesTest unit test flaps in 1.2
> ---
>
> Key: CASSANDRA-7178
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7178
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Michael Shuler
>Priority: Minor
> Fix For: 1.2.17
>
>
> bisecting..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[12/13] git commit: Merge branch 'cassandra-2.0' into cassandra-2.1

2014-05-06 Thread brandonwilliams
Merge branch 'cassandra-2.0' into cassandra-2.1


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

Branch: refs/heads/trunk
Commit: 4f57aa0563f76467f5d94b460fc73e805327bde3
Parents: 60faac4 0a09edc
Author: Brandon Williams 
Authored: Tue May 6 16:13:09 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:13:09 2014 -0500

--
 .../cassandra/service/StorageService.java   | 30 
 1 file changed, 30 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4f57aa05/src/java/org/apache/cassandra/service/StorageService.java
--
diff --cc src/java/org/apache/cassandra/service/StorageService.java
index f1be0c2,0300f55..13d9fda
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@@ -1529,11 -1550,12 +1558,12 @@@ public class StorageService extends Not
  
  
  if (logger.isDebugEnabled())
 -logger.debug("Node " + endpoint + " state normal, token " + 
tokens);
 +logger.debug("Node {} state normal, token {}", endpoint, tokens);
  
  if (tokenMetadata.isMember(endpoint))
 -logger.info("Node " + endpoint + " state jump to normal");
 +logger.info("Node {} state jump to normal", endpoint);
  
+ updatePeerInfo(endpoint);
  // Order Matters, TM.updateHostID() should be called before 
TM.updateNormalToken(), (see CASSANDRA-4300).
  if (Gossiper.instance.usesHostId(endpoint))
  {



[05/13] git commit: Merge branch 'cassandra-1.2' into cassandra-2.0

2014-05-06 Thread brandonwilliams
Merge branch 'cassandra-1.2' into cassandra-2.0


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

Branch: refs/heads/cassandra-2.1
Commit: b17629cafcf17487971eba80f1443c00ad4e25ea
Parents: 8d93c1f f4460a5
Author: Brandon Williams 
Authored: Tue May 6 16:10:52 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:10:52 2014 -0500

--
 .../cassandra/service/StorageService.java   | 30 
 1 file changed, 30 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/b17629ca/src/java/org/apache/cassandra/service/StorageService.java
--



[jira] [Commented] (CASSANDRA-7181) Remove unused method isLocalTask() in o.a.c.repair.StreamingRepairTask

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams commented on CASSANDRA-7181:
-

I think we can remove this in 2.0 also.

> Remove unused method isLocalTask() in o.a.c.repair.StreamingRepairTask
> --
>
> Key: CASSANDRA-7181
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7181
> Project: Cassandra
>  Issue Type: Wish
>Reporter: Lyuben Todorov
>Assignee: Lyuben Todorov
>Priority: Trivial
> Attachments: 
> cassandra-2.1-remove-o.a.c.repair.StreamingRepairTask.isLocalTask.diff
>
>
> Not sure if the method is used by any other tools /cc [~beobal]  but based on 
> info from #cassandra-dev it is not. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[04/13] git commit: Update peer information when a node jumps to normal.

2014-05-06 Thread brandonwilliams
Update peer information when a node jumps to normal.

Patch by brandonwilliams, reviewed by Richard Low for CASSANDRA-7122


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

Branch: refs/heads/cassandra-2.1
Commit: f4460a55b85759d2a631a2d931f10106e1748770
Parents: 64394b2
Author: Brandon Williams 
Authored: Tue May 6 16:10:10 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:10:10 2014 -0500

--
 .../cassandra/service/StorageService.java   | 30 
 1 file changed, 30 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/f4460a55/src/java/org/apache/cassandra/service/StorageService.java
--
diff --git a/src/java/org/apache/cassandra/service/StorageService.java 
b/src/java/org/apache/cassandra/service/StorageService.java
index bfca642..ed6d031 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -1383,6 +1383,35 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 }
 }
 
+private void updatePeerInfo(InetAddress endpoint)
+{
+EndpointState epState = 
Gossiper.instance.getEndpointStateForEndpoint(endpoint);
+for (Map.Entry entry : 
epState.getApplicationStateMap().entrySet())
+{
+switch (entry.getKey())
+{
+case RELEASE_VERSION:
+SystemTable.updatePeerInfo(endpoint, "release_version", 
quote(entry.getValue().value));
+break;
+case DC:
+SystemTable.updatePeerInfo(endpoint, "data_center", 
quote(entry.getValue().value));
+break;
+case RACK:
+SystemTable.updatePeerInfo(endpoint, "rack", 
quote(entry.getValue().value));
+break;
+case RPC_ADDRESS:
+SystemTable.updatePeerInfo(endpoint, "rpc_address", 
quote(entry.getValue().value));
+break;
+case SCHEMA:
+SystemTable.updatePeerInfo(endpoint, "schema_version", 
entry.getValue().value);
+break;
+case HOST_ID:
+SystemTable.updatePeerInfo(endpoint, "host_id", 
entry.getValue().value);
+break;
+}
+}
+}
+
 private String quote(String value)
 {
 return "'" + value + "'";
@@ -1484,6 +1513,7 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 if (tokenMetadata.isMember(endpoint))
 logger.info("Node " + endpoint + " state jump to normal");
 
+updatePeerInfo(endpoint);
 // Order Matters, TM.updateHostID() should be called before 
TM.updateNormalToken(), (see CASSANDRA-4300).
 if (Gossiper.instance.usesHostId(endpoint))
 {



[jira] [Resolved] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Philip Thompson (JIRA)

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

Philip Thompson resolved CASSANDRA-7179.


   Resolution: Fixed
Fix Version/s: 2.1 beta1
   2.1 beta2
Reproduced In: 2.1 beta2, 2.1 beta1  (was: 2.1 beta1, 2.1 beta2)

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>  Labels: qa-resolved
> Fix For: 2.1 beta2, 2.1 beta1
>
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[13/13] git commit: Merge branch 'cassandra-2.1' into trunk

2014-05-06 Thread brandonwilliams
Merge branch 'cassandra-2.1' into trunk


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

Branch: refs/heads/trunk
Commit: 3876ad51b3a70ccc6226b0cf3ba12f368bc2b045
Parents: 07dcc99 4f57aa0
Author: Brandon Williams 
Authored: Tue May 6 16:13:18 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:13:18 2014 -0500

--
 .../cassandra/service/StorageService.java   | 30 
 1 file changed, 30 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/3876ad51/src/java/org/apache/cassandra/service/StorageService.java
--



[02/13] git commit: Update peer information when a node jumps to normal.

2014-05-06 Thread brandonwilliams
Update peer information when a node jumps to normal.

Patch by brandonwilliams, reviewed by Richard Low for CASSANDRA-7122


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

Branch: refs/heads/trunk
Commit: f4460a55b85759d2a631a2d931f10106e1748770
Parents: 64394b2
Author: Brandon Williams 
Authored: Tue May 6 16:10:10 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:10:10 2014 -0500

--
 .../cassandra/service/StorageService.java   | 30 
 1 file changed, 30 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/f4460a55/src/java/org/apache/cassandra/service/StorageService.java
--
diff --git a/src/java/org/apache/cassandra/service/StorageService.java 
b/src/java/org/apache/cassandra/service/StorageService.java
index bfca642..ed6d031 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -1383,6 +1383,35 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 }
 }
 
+private void updatePeerInfo(InetAddress endpoint)
+{
+EndpointState epState = 
Gossiper.instance.getEndpointStateForEndpoint(endpoint);
+for (Map.Entry entry : 
epState.getApplicationStateMap().entrySet())
+{
+switch (entry.getKey())
+{
+case RELEASE_VERSION:
+SystemTable.updatePeerInfo(endpoint, "release_version", 
quote(entry.getValue().value));
+break;
+case DC:
+SystemTable.updatePeerInfo(endpoint, "data_center", 
quote(entry.getValue().value));
+break;
+case RACK:
+SystemTable.updatePeerInfo(endpoint, "rack", 
quote(entry.getValue().value));
+break;
+case RPC_ADDRESS:
+SystemTable.updatePeerInfo(endpoint, "rpc_address", 
quote(entry.getValue().value));
+break;
+case SCHEMA:
+SystemTable.updatePeerInfo(endpoint, "schema_version", 
entry.getValue().value);
+break;
+case HOST_ID:
+SystemTable.updatePeerInfo(endpoint, "host_id", 
entry.getValue().value);
+break;
+}
+}
+}
+
 private String quote(String value)
 {
 return "'" + value + "'";
@@ -1484,6 +1513,7 @@ public class StorageService extends 
NotificationBroadcasterSupport implements IE
 if (tokenMetadata.isMember(endpoint))
 logger.info("Node " + endpoint + " state jump to normal");
 
+updatePeerInfo(endpoint);
 // Order Matters, TM.updateHostID() should be called before 
TM.updateNormalToken(), (see CASSANDRA-4300).
 if (Gossiper.instance.usesHostId(endpoint))
 {



[jira] [Commented] (CASSANDRA-7122) Replacement nodes have null entries in system.peers

2014-05-06 Thread Richard Low (JIRA)

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

Richard Low commented on CASSANDRA-7122:


Your patch fixes it:

{code}
cqlsh> select * from system.peers;

 peer  | data_center | host_id  | rack| 
release_version | rpc_address | schema_version   | tokens
---+-+--+-+-+-+--+--
 127.0.0.3 | DEV | 32cd3878-b149-4116-bb79-dccc0dbdb655 | h11 | 
1.2.16-SNAPSHOT |   127.0.0.3 | a938ded8-ad8f-3b6b-89dd-7f96d8174974 | 
{'-3074457345618258602'}
{code}

> Replacement nodes have null entries in system.peers
> ---
>
> Key: CASSANDRA-7122
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7122
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Richard Low
>Assignee: Brandon Williams
> Fix For: 1.2.17
>
> Attachments: 7122.txt
>
>
> If a node is replaced with -Dcassandra.replace_address, the new node has 
> mostly null entries in system.peers:
> {code}
> > select * from system.peers;
>  peer  | data_center | host_id | rack | release_version | rpc_address | 
> schema_version | tokens
> ---+-+-+--+-+-++--
>  127.0.0.3 |null |null | null |null |null |   
> null | {'-3074457345618258602'}
> {code}
> To reproduce, simply kill a node and replace it. The entries are correctly 
> populated if the replacement node is restarted but they are never populated 
> if it isn't.
> I can think of at least two bad consequences of this:
> 1. Drivers like Datastax java-driver use the peers table to find the 
> rpc_address and location info of a node. If the entires are null it assumes 
> rpc_address=ip and the node is in the local DC.
> 2. When using GossipingPropertyFileSnitch and node won't persist the DC/rack 
> of another node so may not be able to locate it during restarts.
> I reproduced in 1.2.15 but from inspection it looks to be present in 1.2.16 
> and 2.0.7.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[11/13] git commit: Merge branch 'cassandra-2.0' into cassandra-2.1

2014-05-06 Thread brandonwilliams
Merge branch 'cassandra-2.0' into cassandra-2.1


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

Branch: refs/heads/cassandra-2.1
Commit: 4f57aa0563f76467f5d94b460fc73e805327bde3
Parents: 60faac4 0a09edc
Author: Brandon Williams 
Authored: Tue May 6 16:13:09 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 16:13:09 2014 -0500

--
 .../cassandra/service/StorageService.java   | 30 
 1 file changed, 30 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4f57aa05/src/java/org/apache/cassandra/service/StorageService.java
--
diff --cc src/java/org/apache/cassandra/service/StorageService.java
index f1be0c2,0300f55..13d9fda
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@@ -1529,11 -1550,12 +1558,12 @@@ public class StorageService extends Not
  
  
  if (logger.isDebugEnabled())
 -logger.debug("Node " + endpoint + " state normal, token " + 
tokens);
 +logger.debug("Node {} state normal, token {}", endpoint, tokens);
  
  if (tokenMetadata.isMember(endpoint))
 -logger.info("Node " + endpoint + " state jump to normal");
 +logger.info("Node {} state jump to normal", endpoint);
  
+ updatePeerInfo(endpoint);
  // Order Matters, TM.updateHostID() should be called before 
TM.updateNormalToken(), (see CASSANDRA-4300).
  if (Gossiper.instance.usesHostId(endpoint))
  {



[jira] [Commented] (CASSANDRA-7122) Replacement nodes have null entries in system.peers

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams commented on CASSANDRA-7122:
-

I see where I went wrong, I misunderstood "the new node has mostly null entries 
in system.peers" to mean in the new node's system.peers, and that's not what 
you meant.  Everything jives now and the patch solves it for me.

> Replacement nodes have null entries in system.peers
> ---
>
> Key: CASSANDRA-7122
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7122
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Richard Low
>Assignee: Brandon Williams
> Fix For: 1.2.17
>
> Attachments: 7122.txt
>
>
> If a node is replaced with -Dcassandra.replace_address, the new node has 
> mostly null entries in system.peers:
> {code}
> > select * from system.peers;
>  peer  | data_center | host_id | rack | release_version | rpc_address | 
> schema_version | tokens
> ---+-+-+--+-+-++--
>  127.0.0.3 |null |null | null |null |null |   
> null | {'-3074457345618258602'}
> {code}
> To reproduce, simply kill a node and replace it. The entries are correctly 
> populated if the replacement node is restarted but they are never populated 
> if it isn't.
> I can think of at least two bad consequences of this:
> 1. Drivers like Datastax java-driver use the peers table to find the 
> rpc_address and location info of a node. If the entires are null it assumes 
> rpc_address=ip and the node is in the local DC.
> 2. When using GossipingPropertyFileSnitch and node won't persist the DC/rack 
> of another node so may not be able to locate it during restarts.
> I reproduced in 1.2.15 but from inspection it looks to be present in 1.2.16 
> and 2.0.7.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-6861) Optimise our Netty 4 integration

2014-05-06 Thread T Jake Luciani (JIRA)

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

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


Pushed changes for 1 and 2 plus added exception checks to free resources.

For 3, calling Unpooled.buffer() is a on heap buffer call. I don't see them 
changing that.

bq. What about the "SSL - Don’t use JDKs SSLEngine if performance matters" part 
of the slides? Are we going to handle that as part of this ticket?

I don't know about you but I prefer to stick with the JDK here for security 
reasons.  


> Optimise our Netty 4 integration
> 
>
> Key: CASSANDRA-6861
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6861
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Core
>Reporter: Benedict
>Assignee: T Jake Luciani
>Priority: Minor
>  Labels: performance
> Fix For: 2.1 rc1
>
>
> Now we've upgraded to Netty 4, we're generating a lot of garbage that could 
> be avoided, so we should probably stop that. Should be reasonably easy to 
> hook into Netty's pooled buffers, returning them to the pool once a given 
> message is completed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7122) Replacement nodes have null entries in system.peers

2014-05-06 Thread Richard Low (JIRA)

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

Richard Low commented on CASSANDRA-7122:


It repros every time for me when replacing with a different IP:

* Create a 2 node cluster, nodes A and B.
* Kill node B
* Start node C with replace_address set to B's address
* Get the system.peers output I put in the description

> Replacement nodes have null entries in system.peers
> ---
>
> Key: CASSANDRA-7122
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7122
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Richard Low
>Assignee: Brandon Williams
> Fix For: 1.2.17
>
> Attachments: 7122.txt
>
>
> If a node is replaced with -Dcassandra.replace_address, the new node has 
> mostly null entries in system.peers:
> {code}
> > select * from system.peers;
>  peer  | data_center | host_id | rack | release_version | rpc_address | 
> schema_version | tokens
> ---+-+-+--+-+-++--
>  127.0.0.3 |null |null | null |null |null |   
> null | {'-3074457345618258602'}
> {code}
> To reproduce, simply kill a node and replace it. The entries are correctly 
> populated if the replacement node is restarted but they are never populated 
> if it isn't.
> I can think of at least two bad consequences of this:
> 1. Drivers like Datastax java-driver use the peers table to find the 
> rpc_address and location info of a node. If the entires are null it assumes 
> rpc_address=ip and the node is in the local DC.
> 2. When using GossipingPropertyFileSnitch and node won't persist the DC/rack 
> of another node so may not be able to locate it during restarts.
> I reproduced in 1.2.15 but from inspection it looks to be present in 1.2.16 
> and 2.0.7.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-5483) Repair tracing

2014-05-06 Thread Lyuben Todorov (JIRA)

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

Lyuben Todorov updated CASSANDRA-5483:
--

Attachment: 5483-v11-squashed-nits.patch

Im attaching v11-nits with these nits fixed:

- Removed unused imports in o.a.c.net.MessageOut, o.a.c.repair.RepairSession, 
o.a.c.repair.StreamingRepairTask, o.a.c.service.SS, o.a.c.tracing.TraceState.
- Removed "redundant" null initialisation in SS#createRepairTask

The patch LGTM, the last thing worth thinking about is whether the hardcoded 
tracing TTLs should be made flexible by adding an option in cassandra.yaml. If 
not then +1

> Repair tracing
> --
>
> Key: CASSANDRA-5483
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5483
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Tools
>Reporter: Yuki Morishita
>Assignee: Ben Chan
>Priority: Minor
>  Labels: repair
> Attachments: 5483-full-trunk.txt, 
> 5483-v06-04-Allow-tracing-ttl-to-be-configured.patch, 
> 5483-v06-05-Add-a-command-column-to-system_traces.events.patch, 
> 5483-v06-06-Fix-interruption-in-tracestate-propagation.patch, 
> 5483-v07-07-Better-constructor-parameters-for-DebuggableThreadPoolExecutor.patch,
>  5483-v07-08-Fix-brace-style.patch, 
> 5483-v07-09-Add-trace-option-to-a-more-complete-set-of-repair-functions.patch,
>  5483-v07-10-Correct-name-of-boolean-repairedAt-to-fullRepair.patch, 
> 5483-v08-11-Shorten-trace-messages.-Use-Tracing-begin.patch, 
> 5483-v08-12-Trace-streaming-in-Differencer-StreamingRepairTask.patch, 
> 5483-v08-13-sendNotification-of-local-traces-back-to-nodetool.patch, 
> 5483-v08-14-Poll-system_traces.events.patch, 
> 5483-v08-15-Limit-trace-notifications.-Add-exponential-backoff.patch, 
> 5483-v09-16-Fix-hang-caused-by-incorrect-exit-code.patch, 
> 5483-v10-17-minor-bugfixes-and-changes.patch, 
> 5483-v10-rebased-and-squashed-471f5cc.patch, 5483-v11-01-squashed.patch, 
> 5483-v11-squashed-nits.patch, ccm-repair-test, 
> cqlsh-left-justify-text-columns.patch, prerepair-vs-postbuggedrepair.diff, 
> test-5483-system_traces-events.txt, 
> trunk@4620823-5483-v02-0001-Trace-filtering-and-tracestate-propagation.patch, 
> trunk@4620823-5483-v02-0002-Put-a-few-traces-parallel-to-the-repair-logging.patch,
>  tr...@8ebeee1-5483-v01-001-trace-filtering-and-tracestate-propagation.txt, 
> tr...@8ebeee1-5483-v01-002-simple-repair-tracing.txt, 
> v02p02-5483-v03-0003-Make-repair-tracing-controllable-via-nodetool.patch, 
> v02p02-5483-v04-0003-This-time-use-an-EnumSet-to-pass-boolean-repair-options.patch,
>  v02p02-5483-v05-0003-Use-long-instead-of-EnumSet-to-work-with-JMX.patch
>
>
> I think it would be nice to log repair stats and results like query tracing 
> stores traces to system keyspace. With it, you don't have to lookup each log 
> file to see what was the status and how it performed the repair you invoked. 
> Instead, you can query the repair log with session ID to see the state and 
> stats of all nodes involved in that repair session.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams updated CASSANDRA-7179:


Fix Version/s: (was: 2.1 beta2)
   (was: 2.1 beta1)

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>  Labels: qa-resolved
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-7175) Dtests should have an option for offheap memtables

2014-05-06 Thread Ryan McGuire (JIRA)

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

Ryan McGuire updated CASSANDRA-7175:


Labels: qa-resolved  (was: )

> Dtests should have an option for offheap memtables
> --
>
> Key: CASSANDRA-7175
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7175
> Project: Cassandra
>  Issue Type: Test
>Reporter: Ryan McGuire
>Assignee: Ryan McGuire
>  Labels: qa-resolved
> Fix For: 2.1 rc1
>
>
> 2.1 has a new setting for offheap memtables, we should have a flag for dtests 
> that will run our tests both ways: with a stock setting of heap_buffers, and 
> with offheap_objects. I suggest we model this the same way we enable vnodes 
> with an environment variable.
> OFFHEAP_MEMTABLES=true maybe.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams updated CASSANDRA-7179:


Since Version:   (was: 2.1 beta1)

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>  Labels: qa-resolved
> Fix For: 2.1 beta1, 2.1 beta2
>
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Resolved] (CASSANDRA-7175) Dtests should have an option for offheap memtables

2014-05-06 Thread Ryan McGuire (JIRA)

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

Ryan McGuire resolved CASSANDRA-7175.
-

Resolution: Fixed

https://github.com/riptano/cassandra-dtest/commit/47273c0d51633320b969e974a55e75ea9e7d6a6e

> Dtests should have an option for offheap memtables
> --
>
> Key: CASSANDRA-7175
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7175
> Project: Cassandra
>  Issue Type: Test
>Reporter: Ryan McGuire
>Assignee: Ryan McGuire
> Fix For: 2.1 rc1
>
>
> 2.1 has a new setting for offheap memtables, we should have a flag for dtests 
> that will run our tests both ways: with a stock setting of heap_buffers, and 
> with offheap_objects. I suggest we model this the same way we enable vnodes 
> with an environment variable.
> OFFHEAP_MEMTABLES=true maybe.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[1/3] git commit: Fix NPE when stream requestRanges

2014-05-06 Thread yukim
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 ef92bb5f3 -> 60faac434
  refs/heads/trunk 9224dd5cf -> 07dcc9973


Fix NPE when stream requestRanges


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

Branch: refs/heads/cassandra-2.1
Commit: 60faac4340d959f9ce100430c84e1d26f7aa28af
Parents: ef92bb5
Author: Joshua McKenzie 
Authored: Tue May 6 15:16:27 2014 -0500
Committer: Yuki Morishita 
Committed: Tue May 6 15:16:27 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/60faac43/src/java/org/apache/cassandra/streaming/StreamCoordinator.java
--
diff --git a/src/java/org/apache/cassandra/streaming/StreamCoordinator.java 
b/src/java/org/apache/cassandra/streaming/StreamCoordinator.java
index 425b5b1..ed94f89 100644
--- a/src/java/org/apache/cassandra/streaming/StreamCoordinator.java
+++ b/src/java/org/apache/cassandra/streaming/StreamCoordinator.java
@@ -223,7 +223,7 @@ public class StreamCoordinator
 // get
 else
 {
-if (lastReturned == streamSessions.size() - 1)
+if (lastReturned >= streamSessions.size() - 1)
 lastReturned = 0;
 
 return streamSessions.get(lastReturned++);



[jira] [Updated] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams updated CASSANDRA-7179:


Reproduced In:   (was: 2.1 beta1, 2.1 beta2)

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>  Labels: qa-resolved
> Fix For: 2.1 beta1, 2.1 beta2
>
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-6959) Reusing Keyspace and CF names raises assertion errors

2014-05-06 Thread Benedict (JIRA)

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

Benedict updated CASSANDRA-6959:


Attachment: 6959.txt

Was using < instead of <= for marking the CLS clean, so in some cases it wasn't 
getting recycled. Attached trivial patch.

> Reusing Keyspace and CF names raises assertion errors
> -
>
> Key: CASSANDRA-6959
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6959
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Ryan McGuire
>Assignee: Benedict
> Fix For: 2.1 rc1
>
> Attachments: 6959.txt, 6959.txt
>
>
> The [dtest I 
> introduced|https://github.com/riptano/cassandra-dtest/commit/36960090d219ab8dbc7f108faa91c3ea5cea2bec]
>  to test CASSANDRA-6924 introduces some log errors which I think may be 
> related to  CASSANDRA-5202. 
> On 2.1 :
> {code}
> ERROR [MigrationStage:1] 2014-03-31 14:36:43,463 
> CommitLogSegmentManager.java:306 - Failed waiting for a forced recycle of 
> in-use commit log segments
> java.lang.AssertionError: null
> at 
> org.apache.cassandra.db.commitlog.CommitLogSegmentManager.forceRecycleAll(CommitLogSegmentManager.java:301)
>  ~[main/:na]
> at 
> org.apache.cassandra.db.commitlog.CommitLog.forceRecycleAllSegments(CommitLog.java:160)
>  [main/:na]
> at 
> org.apache.cassandra.db.DefsTables.dropColumnFamily(DefsTables.java:497) 
> [main/:na]
> at 
> org.apache.cassandra.db.DefsTables.mergeColumnFamilies(DefsTables.java:296) 
> [main/:na]
> at 
> org.apache.cassandra.db.DefsTables.mergeSchema(DefsTables.java:181) [main/:na]
> at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:49)
>  [main/:na]
> at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) 
> [main/:na]
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
> [na:1.7.0_51]
> at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
> [na:1.7.0_51]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  [na:1.7.0_51]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>  [na:1.7.0_51]
> at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
> {code}
> On 2.0: 
> {code}
> ERROR [ReadStage:3] 2014-03-31 13:28:11,014 CassandraDaemon.java (line 198) 
> Exception in thread Thread[ReadStage:3,5,main]
> java.lang.AssertionError
> at 
> org.apache.cassandra.db.filter.ExtendedFilter$WithClauses.getExtraFilter(ExtendedFilter.java:258)
> at 
> org.apache.cassandra.db.ColumnFamilyStore.filter(ColumnFamilyStore.java:1744)
> at 
> org.apache.cassandra.db.ColumnFamilyStore.getRangeSlice(ColumnFamilyStore.java:1699)
> at 
> org.apache.cassandra.db.PagedRangeCommand.executeLocally(PagedRangeCommand.java:119)
> at 
> org.apache.cassandra.service.RangeSliceVerbHandler.doVerb(RangeSliceVerbHandler.java:39)
> at 
> org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:60)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> {code}
> To reproduce, you many need to comment out the assertion in that test, as it 
> is not 100% reproducible on the first try.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7180) Investigate mutation testing for unit tests

2014-05-06 Thread Benedict (JIRA)

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

Benedict commented on CASSANDRA-7180:
-

I like this idea. We'd have to be careful it didn't introduce an unreasonable 
burden of plugging non-issues as it was introduced, but in the long run it 
could pay dividends.

> Investigate mutation testing for unit tests
> ---
>
> Key: CASSANDRA-7180
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7180
> Project: Cassandra
>  Issue Type: Test
>Reporter: Russ Hatch
>Assignee: Russ Hatch
>
> We might get some useful information from mutation testing tools, possibly 
> PIT (http://pitest.org/). The basic idea is to seed faults in the code and 
> check to see if the unit tests are able to catch them. If we can get this up 
> and running, perhaps it could be run periodically on cassci.datastax.com.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[2/3] git commit: Fix NPE when stream requestRanges

2014-05-06 Thread yukim
Fix NPE when stream requestRanges


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

Branch: refs/heads/trunk
Commit: 60faac4340d959f9ce100430c84e1d26f7aa28af
Parents: ef92bb5
Author: Joshua McKenzie 
Authored: Tue May 6 15:16:27 2014 -0500
Committer: Yuki Morishita 
Committed: Tue May 6 15:16:27 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/60faac43/src/java/org/apache/cassandra/streaming/StreamCoordinator.java
--
diff --git a/src/java/org/apache/cassandra/streaming/StreamCoordinator.java 
b/src/java/org/apache/cassandra/streaming/StreamCoordinator.java
index 425b5b1..ed94f89 100644
--- a/src/java/org/apache/cassandra/streaming/StreamCoordinator.java
+++ b/src/java/org/apache/cassandra/streaming/StreamCoordinator.java
@@ -223,7 +223,7 @@ public class StreamCoordinator
 // get
 else
 {
-if (lastReturned == streamSessions.size() - 1)
+if (lastReturned >= streamSessions.size() - 1)
 lastReturned = 0;
 
 return streamSessions.get(lastReturned++);



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

2014-05-06 Thread yukim
Merge branch 'cassandra-2.1' into trunk


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

Branch: refs/heads/trunk
Commit: 07dcc9973793c8eb27c7df062a029f79a89e933e
Parents: 9224dd5 60faac4
Author: Yuki Morishita 
Authored: Tue May 6 15:17:19 2014 -0500
Committer: Yuki Morishita 
Committed: Tue May 6 15:17:19 2014 -0500

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




[jira] [Updated] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Philip Thompson (JIRA)

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

Philip Thompson updated CASSANDRA-7179:
---

Reproduced In: 2.1 beta2, 2.1 beta1  (was: 2.1 beta1, 2.1 beta2)
   Labels: qa-resolved  (was: )

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>  Labels: qa-resolved
> Fix For: 2.1 beta1, 2.1 beta2
>
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7178) o.a.c.db.DirectoriesTest unit test flaps in 1.2

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler commented on CASSANDRA-7178:
---

Thanks!  Turned out that a quick {{rm -r ~/.m2}} to re-download everything 
fixed this for me, so I'm back to bisecting.

> o.a.c.db.DirectoriesTest unit test flaps in 1.2
> ---
>
> Key: CASSANDRA-7178
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7178
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Michael Shuler
>Priority: Minor
> Fix For: 1.2.17
>
>
> bisecting..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-6861) Optimise our Netty 4 integration

2014-05-06 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko commented on CASSANDRA-6861:
--

What about the "SSL - Don’t use JDKs SSLEngine if performance matters" part of 
the slides? Are we going to handle that as part of this ticket?

> Optimise our Netty 4 integration
> 
>
> Key: CASSANDRA-6861
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6861
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Core
>Reporter: Benedict
>Assignee: T Jake Luciani
>Priority: Minor
>  Labels: performance
> Fix For: 2.1 rc1
>
>
> Now we've upgraded to Netty 4, we're generating a lot of garbage that could 
> be avoided, so we should probably stop that. Should be reasonably easy to 
> hook into Netty's pooled buffers, returning them to the pool once a given 
> message is completed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7168) Add repair aware consistency levels

2014-05-06 Thread Benedict (JIRA)

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

Benedict commented on CASSANDRA-7168:
-

It seems like a pretty reasonable idea - the coordinator (if an owner of the 
range) could simply issue a special quorum request for all data since the local 
repairedAt time (which would include all deletedcolumns as is, instead of 
filtering them), which would rule out any races on repair overlaps

However aggregations are most likely some way off, so I'm not sure this buys us 
much in the near-term?

> Add repair aware consistency levels
> ---
>
> Key: CASSANDRA-7168
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7168
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Core
>Reporter: T Jake Luciani
>  Labels: performance
> Fix For: 3.0
>
>
> With CASSANDRA-5351 and CASSANDRA-2424 I think there is an opportunity to 
> avoid a lot of extra disk I/O when running queries with higher consistency 
> levels.  
> Since repaired data is by definition consistent and we know which sstables 
> are repaired, we can optimize the read path by having a REPAIRED_QUORUM which 
> breaks reads into two phases:
>  
>   1) Read from one replica the result from the repaired sstables. 
>   2) Read from a quorum only the un-repaired data.
> For the node performing 1) we can pipeline the call so it's a single hop.
> In the long run (assuming data is repaired regularly) we will end up with 
> much closer to CL.ONE performance while maintaining consistency.
> Some things to figure out:
>   - If repairs fail on some nodes we can have a situation where we don't have 
> a consistent repaired state across the replicas.  
>   



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7067) Refuse CAS batch that have a 'USING TIMESTAMP'

2014-05-06 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko commented on CASSANDRA-7067:
--

LGTM, +1

Do we have 2.1 dtests for this?

> Refuse CAS batch that have a 'USING TIMESTAMP'
> --
>
> Key: CASSANDRA-7067
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7067
> Project: Cassandra
>  Issue Type: Sub-task
>Reporter: Mikhail Stepura
>Assignee: Sylvain Lebresne
>Priority: Minor
>  Labels: lhf
> Fix For: 2.0.8
>
> Attachments: 7067.txt
>
>
> Cassandra must refuse  BATCHes with {{TIMESTAMP}}, if they contain a CAS 
> statement(s). Like this one:
> {code}
> BEGIN BATCH USING TIMESTAMP 
> INSERT INTO users (id, firstname, lastname) VALUES (999, 'Jack', 'Sparrow')  
> IF NOT EXISTS
> APPLY BATCH
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7067) Refuse CAS batch that have a 'USING TIMESTAMP'

2014-05-06 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko commented on CASSANDRA-7067:
--

LGTM, +1

Do we have 2.1 dtests for this?

> Refuse CAS batch that have a 'USING TIMESTAMP'
> --
>
> Key: CASSANDRA-7067
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7067
> Project: Cassandra
>  Issue Type: Sub-task
>Reporter: Mikhail Stepura
>Assignee: Sylvain Lebresne
>Priority: Minor
>  Labels: lhf
> Fix For: 2.0.8
>
> Attachments: 7067.txt
>
>
> Cassandra must refuse  BATCHes with {{TIMESTAMP}}, if they contain a CAS 
> statement(s). Like this one:
> {code}
> BEGIN BATCH USING TIMESTAMP 
> INSERT INTO users (id, firstname, lastname) VALUES (999, 'Jack', 'Sparrow')  
> IF NOT EXISTS
> APPLY BATCH
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[1/3] git commit: disable boundary repo temporarily

2014-05-06 Thread brandonwilliams
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 3d62a5530 -> ef92bb5f3
  refs/heads/trunk aae8d8cc7 -> 9224dd5cf


disable boundary repo temporarily


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

Branch: refs/heads/cassandra-2.1
Commit: ef92bb5f33bfcc10cf82d9764d4741f377374b48
Parents: 3d62a55
Author: Brandon Williams 
Authored: Tue May 6 13:48:06 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 13:48:06 2014 -0500

--
 build.xml | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ef92bb5f/build.xml
--
diff --git a/build.xml b/build.xml
index fe3d970..376f6cc 100644
--- a/build.xml
+++ b/build.xml
@@ -283,7 +283,7 @@
   
   
   
-  
+  
 
   
 
@@ -543,7 +543,7 @@
   
   
   
-  
+  
   
   
@@ -569,7 +569,7 @@
 
 
 
-
+
   
   
 
@@ -590,7 +590,7 @@
 
 
 
-
+
   
   
 



[jira] [Commented] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Philip Thompson (JIRA)

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

Philip Thompson commented on CASSANDRA-7179:


The version of ant does not seems to matter, but Brandon is correct that it is 
intermittent. The .jar files in the error messages are corrupted somehow and 
are html instead of .jar files. This appears to be a problem with ant.

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-7177) Starting threads in the OutboundTcpConnectionPool constructor causes race conditions

2014-05-06 Thread Jason Brown (JIRA)

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

Jason Brown updated CASSANDRA-7177:
---

Reviewer: Jason Brown

> Starting threads in the OutboundTcpConnectionPool constructor causes race 
> conditions
> 
>
> Key: CASSANDRA-7177
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7177
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Reporter: Sergio Bossa
>Assignee: Sergio Bossa
> Attachments: CASSANDRA-7177.patch
>
>
> The OutboundTcpConnectionPool starts connection threads in its constructor, 
> causing race conditions when MessagingService#getConnectionPool is 
> concurrently called for the first time for a given address.
> I.e., here's one of the races:
> {noformat}
>  WARN 12:49:03,182 Error processing 
> org.apache.cassandra.metrics:type=Connection,scope=127.0.0.1,name=CommandPendingTasks
> javax.management.InstanceAlreadyExistsException: 
> org.apache.cassandra.metrics:type=Connection,scope=127.0.0.1,name=CommandPendingTasks
>   at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
>   at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
>   at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
>   at 
> com.yammer.metrics.reporting.JmxReporter.registerBean(JmxReporter.java:464)
>   at 
> com.yammer.metrics.reporting.JmxReporter.processGauge(JmxReporter.java:438)
>   at 
> com.yammer.metrics.reporting.JmxReporter.processGauge(JmxReporter.java:16)
>   at com.yammer.metrics.core.Gauge.processWith(Gauge.java:28)
>   at 
> com.yammer.metrics.reporting.JmxReporter.onMetricAdded(JmxReporter.java:395)
>   at 
> com.yammer.metrics.core.MetricsRegistry.notifyMetricAdded(MetricsRegistry.java:516)
>   at 
> com.yammer.metrics.core.MetricsRegistry.getOrAdd(MetricsRegistry.java:491)
>   at 
> com.yammer.metrics.core.MetricsRegistry.newGauge(MetricsRegistry.java:79)
>   at com.yammer.metrics.Metrics.newGauge(Metrics.java:70)
>   at 
> org.apache.cassandra.metrics.ConnectionMetrics.(ConnectionMetrics.java:71)
>   at 
> org.apache.cassandra.net.OutboundTcpConnectionPool.(OutboundTcpConnectionPool.java:55)
>   at 
> org.apache.cassandra.net.MessagingService.getConnectionPool(MessagingService.java:498)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7178) o.a.c.db.DirectoriesTest unit test flaps in 1.2

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams commented on CASSANDRA-7178:
-

See CASSANDRA-7179... I fixed it recently but you'll have to skip the handful 
of commits that still have it.

> o.a.c.db.DirectoriesTest unit test flaps in 1.2
> ---
>
> Key: CASSANDRA-7178
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7178
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Michael Shuler
>Priority: Minor
> Fix For: 1.2.17
>
>
> bisecting..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7178) o.a.c.db.DirectoriesTest unit test flaps in 1.2

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler commented on CASSANDRA-7178:
---

The flapping test, testHandleBadFiles, was added in commit 6677d075 which fails 
to build for me, so was skipped by bisect (tried a bunch of later commits, too) 
- I'm guessing jar in jdk7 is the problem - will come back to this with jdk6.  
I'd like to test that this actually passes in a long running loop over the unit 
test at some point, so I have a known good starting point.

{noformat}
((6677d07...))mshuler@hana:~/git/cassandra$ ant jar
...
build-project:
 [echo] apache-cassandra: /home/mshuler/git/cassandra/build.xml
[javac] Compiling 41 source files to 
/home/mshuler/git/cassandra/build/classes/thrift
[javac] error: error reading 
/home/mshuler/git/cassandra/build/lib/sources/commons-beanutils-core-1.8.0-sources.jar;
 error in opening zip file
[javac] error: error reading 
/home/mshuler/git/cassandra/build/lib/sources/core-3.1.1-sources.jar; error in 
opening zip file
[javac] error: error reading 
/home/mshuler/git/cassandra/build/lib/sources/hadoop-core-1.0.3-sources.jar; 
error in opening zip file
[javac] error: error reading 
/home/mshuler/git/cassandra/build/lib/sources/hsqldb-1.8.0.10-sources.jar; 
error in opening zip file
[javac] error: error reading 
/home/mshuler/git/cassandra/build/lib/sources/jasper-compiler-5.5.12-sources.jar;
 error in opening zip file
[javac] error: error reading 
/home/mshuler/git/cassandra/build/lib/sources/jasper-runtime-5.5.12-sources.jar;
 error in opening zip file
[javac] error: error reading 
/home/mshuler/git/cassandra/build/lib/sources/kfs-0.3-sources.jar; error in 
opening zip file
[javac] error: error reading 
/home/mshuler/git/cassandra/build/lib/sources/xmlenc-0.52-sources.jar; error in 
opening zip file
[javac] 8 errors

BUILD FAILED
/home/mshuler/git/cassandra/build.xml:675: Compile failed; see the compiler 
error output for details.

Total time: 12 seconds
((6677d07...))mshuler@hana:~/git/cassandra$ jar tvf 
build/lib/sources/commons-beanutils-core-1.8.0-sources.jar 
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:215)
at java.util.zip.ZipFile.(ZipFile.java:145)
at java.util.zip.ZipFile.(ZipFile.java:116)
at sun.tools.jar.Main.list(Main.java:1004)
at sun.tools.jar.Main.run(Main.java:245)
at sun.tools.jar.Main.main(Main.java:1177)
{noformat}

> o.a.c.db.DirectoriesTest unit test flaps in 1.2
> ---
>
> Key: CASSANDRA-7178
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7178
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Michael Shuler
>Priority: Minor
> Fix For: 1.2.17
>
>
> bisecting..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Comment Edited] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams edited comment on CASSANDRA-7179 at 5/6/14 6:56 PM:
-

I disabled this repo temporarily in 2.1 and trunk and the build works for me.


was (Author: brandon.williams):
I disbaled this repo temporarily in 2.1 and trunk and the build works for me.

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


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

2014-05-06 Thread brandonwilliams
Merge branch 'cassandra-2.1' into trunk


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

Branch: refs/heads/trunk
Commit: 9224dd5cf3b0ec503526c122540b190ea851557e
Parents: aae8d8c ef92bb5
Author: Brandon Williams 
Authored: Tue May 6 13:48:14 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 13:48:14 2014 -0500

--
 build.xml | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)
--


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



[jira] [Commented] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams commented on CASSANDRA-7179:
-

I disbaled this repo temporarily in 2.1 and trunk and the build works for me.

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[2/3] git commit: disable boundary repo temporarily

2014-05-06 Thread brandonwilliams
disable boundary repo temporarily


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

Branch: refs/heads/trunk
Commit: ef92bb5f33bfcc10cf82d9764d4741f377374b48
Parents: 3d62a55
Author: Brandon Williams 
Authored: Tue May 6 13:48:06 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 13:48:06 2014 -0500

--
 build.xml | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ef92bb5f/build.xml
--
diff --git a/build.xml b/build.xml
index fe3d970..376f6cc 100644
--- a/build.xml
+++ b/build.xml
@@ -283,7 +283,7 @@
   
   
   
-  
+  
 
   
 
@@ -543,7 +543,7 @@
   
   
   
-  
+  
   
   
@@ -569,7 +569,7 @@
 
 
 
-
+
   
   
 
@@ -590,7 +590,7 @@
 
 
 
-
+
   
   
 



[jira] [Comment Edited] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams edited comment on CASSANDRA-7179 at 5/6/14 6:46 PM:
-

I just received a bunch of these on my machine (linux, ant 1.9.3):

{noformat}
[artifact:dependencies] [WARNING] *** CHECKSUM FAILED - Checksum failed on 
download: local = 'f15112424bbad3cbc11494aee303ae9d593ed64e'; remote = 
'http://maven.boundary.com/artifactory/external
[artifact:dependencies] Transferring 3K from boundary
[artifact:dependencies] [WARNING] *** CHECKSUM FAILED - Checksum failed on 
download: local = 'd837bb0d6eaa7110d6abb7bffd044013d7c702cf'; remote = 
'http://maven.boundary.com/artifactory/external
[artifact:dependencies] Transferring 3K from boundary
[artifact:dependencies] [WARNING] *** CHECKSUM FAILED - Checksum failed on 
download: local = 'd837bb0d6eaa7110d6abb7bffd044013d7c702cf'; remote = 
' 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Comment Edited] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams edited comment on CASSANDRA-7179 at 5/6/14 6:47 PM:
-

I just received a bunch of these on my machine (linux, ant 1.9.3):

{noformat}
[artifact:dependencies] [WARNING] *** CHECKSUM FAILED - Checksum failed on 
download: local = 'f15112424bbad3cbc11494aee303ae9d593ed64e'; remote = 
'http://maven.boundary.com/artifactory/external
[artifact:dependencies] Transferring 3K from boundary
[artifact:dependencies] [WARNING] *** CHECKSUM FAILED - Checksum failed on 
download: local = 'd837bb0d6eaa7110d6abb7bffd044013d7c702cf'; remote = 
'http://maven.boundary.com/artifactory/external
[artifact:dependencies] Transferring 3K from boundary
[artifact:dependencies] [WARNING] *** CHECKSUM FAILED - Checksum failed on 
download: local = 'd837bb0d6eaa7110d6abb7bffd044013d7c702cf'; remote = 
' 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams commented on CASSANDRA-7179:
-

I just received a bunch of these on my machine (linux, ant 1.9.30):

{noformat}
[artifact:dependencies] [WARNING] *** CHECKSUM FAILED - Checksum failed on 
download: local = 'f15112424bbad3cbc11494aee303ae9d593ed64e'; remote = 
'http://maven.boundary.com/artifactory/external
[artifact:dependencies] Transferring 3K from boundary
[artifact:dependencies] [WARNING] *** CHECKSUM FAILED - Checksum failed on 
download: local = 'd837bb0d6eaa7110d6abb7bffd044013d7c702cf'; remote = 
' 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Comment Edited] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Philip Thompson (JIRA)

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

Philip Thompson edited comment on CASSANDRA-7179 at 5/6/14 6:39 PM:


The version of ant does not seems to matter, but Brandon is correct that it is 
intermittent. The .jar files in the error messages are corrupted somehow and 
are html instead of .jar files. This appears to be a problem with ant.

More specifically, the path cassandra/build/lib/jars/ contains the html "jar" 
files, but cassandra/build/lib/sources/ contains working ones.


was (Author: philipthompson):
The version of ant does not seems to matter, but Brandon is correct that it is 
intermittent. The .jar files in the error messages are corrupted somehow and 
are html instead of .jar files. This appears to be a problem with ant.

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Philip Thompson (JIRA)

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

Philip Thompson commented on CASSANDRA-7179:


Yeah, it seems unreasonable that would be the problem. We're seeing 
disagreements across machines that far back. I'm going to try some earlier 
versions of ant and get back to you.

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams commented on CASSANDRA-7179:
-

I think you're seeing intermittent failures in that case, since I'm pretty 
certain that commit can't be at fault.

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7122) Replacement nodes have null entries in system.peers

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams commented on CASSANDRA-7122:
-

When I replace with a different ip, I get the inverse problem:

{noformat}
 peer  | data_center | host_id  | rack  | 
release_version | rpc_address   | schema_version   | tokens
---+-+--+---+-+---+--+--
 10.208.35.225 | datacenter1 | 36f346bc-d186-415e-a1aa-8d4839823755 | rack1 | 
1.2.16-SNAPSHOT | 10.208.35.225 | 7ed7c061-913f-3cf0-9c8d-a192d3a988db |
 null
{noformat}

Tokens is null, but that is the IP that was replaced and shouldn't be there at 
all.  This patch fixes this behavior too, however.

> Replacement nodes have null entries in system.peers
> ---
>
> Key: CASSANDRA-7122
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7122
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Richard Low
>Assignee: Brandon Williams
> Fix For: 1.2.17
>
> Attachments: 7122.txt
>
>
> If a node is replaced with -Dcassandra.replace_address, the new node has 
> mostly null entries in system.peers:
> {code}
> > select * from system.peers;
>  peer  | data_center | host_id | rack | release_version | rpc_address | 
> schema_version | tokens
> ---+-+-+--+-+-++--
>  127.0.0.3 |null |null | null |null |null |   
> null | {'-3074457345618258602'}
> {code}
> To reproduce, simply kill a node and replace it. The entries are correctly 
> populated if the replacement node is restarted but they are never populated 
> if it isn't.
> I can think of at least two bad consequences of this:
> 1. Drivers like Datastax java-driver use the peers table to find the 
> rpc_address and location info of a node. If the entires are null it assumes 
> rpc_address=ip and the node is in the local DC.
> 2. When using GossipingPropertyFileSnitch and node won't persist the DC/rack 
> of another node so may not be able to locate it during restarts.
> I reproduced in 1.2.15 but from inspection it looks to be present in 1.2.16 
> and 2.0.7.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Comment Edited] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Philip Thompson (JIRA)

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

Philip Thompson edited comment on CASSANDRA-7179 at 5/6/14 6:20 PM:


However that commit doesn't appear to have changed anything related to this 
issue. But I can confirm that I can build with the immediately previous commit, 
but not after the pig version change was made.


was (Author: philipthompson):
However that commit doesn't appear to have changed anything related to this 
issue.

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Philip Thompson (JIRA)

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

Philip Thompson commented on CASSANDRA-7179:


However that commit doesn't appear to have changed anything related to this 
issue.

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Philip Thompson (JIRA)

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

Philip Thompson commented on CASSANDRA-7179:


Git bisect is giving me:

{code}
5af0c5c22f455a8ddccdfc586a929a43e61003dc is the first bad commit
commit 5af0c5c22f455a8ddccdfc586a929a43e61003dc
Author: Brandon Williams http://apache.org>
Date:  Wed Oct 9 17:00:13 2013 -0500

Upgrade pig to 0.11.1

:100644 100644 60801a4f9e3918af5e974eef9d7892d8ccb75107 
818b27fb69996db311037bcd61659b0b6c866d5a M  build.xml
{code}
As the first commit where I can no longer build with ant in Windows.

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7178) o.a.c.db.DirectoriesTest unit test flaps in 1.2

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler commented on CASSANDRA-7178:
---

10x=good bisect landed me on an obviously irrelevant commit. Running 25x..

> o.a.c.db.DirectoriesTest unit test flaps in 1.2
> ---
>
> Key: CASSANDRA-7178
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7178
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Michael Shuler
>Priority: Minor
> Fix For: 1.2.17
>
>
> bisecting..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (CASSANDRA-7180) Investigate mutation testing for unit tests

2014-05-06 Thread Russ Hatch (JIRA)
Russ Hatch created CASSANDRA-7180:
-

 Summary: Investigate mutation testing for unit tests
 Key: CASSANDRA-7180
 URL: https://issues.apache.org/jira/browse/CASSANDRA-7180
 Project: Cassandra
  Issue Type: Test
Reporter: Russ Hatch
Assignee: Russ Hatch


We might get some useful information from mutation testing tools, possibly PIT 
(http://pitest.org/). The basic idea is to seed faults in the code and check to 
see if the unit tests are able to catch them. If we can get this up and 
running, perhaps it could be run periodically on cassci.datastax.com.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Philip Thompson (JIRA)

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

Philip Thompson commented on CASSANDRA-7179:


Java 7 patch 25, patch 51, and patch 55 all repro'd (25 and 55 were on one 
machine, 51 on a second). Newest version of ant was used, 1.9.4

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Brandon Williams (JIRA)

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

Brandon Williams commented on CASSANDRA-7179:
-

What version of java and ant are you using?

> 2.1 and trunk do not build on windows with ant
> --
>
> Key: CASSANDRA-7179
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
> Project: Cassandra
>  Issue Type: Bug
>  Components: Packaging
> Environment: Windows 7 x64
>Reporter: Philip Thompson
>Priority: Minor
>
> In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
> tags, cassandra does not build via ant on Windows.
> This was reproduced on three machines, one using a fresh checkout of C*, and 
> fresh install of ant and java. All three machines correctly have the env vars 
> ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.
> The following error messages were availabe:
> {code}
> maven-ant-tasks-retrieve-build:
> [artifact:dependencies] [WARNING] POM for 
> 'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 
> 'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' 
> is invalid.
> [artifact:dependencies]
> [artifact:dependencies] Its dependencies (if any) will NOT be available to 
> the current build.
> [artifact:dependencies] Building ant file: 
> D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars
>  [copy] Copying 59 files to 
> D:\Users\Philip\cassandra\cassandra\build\lib\sources
> {code}
> and then more importantly:
> {code}
> build-project:
>  [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
> [javac] Compiling 45 source files to 
> D:\Users\Philip\cassandra\cassandra\build\classes\thrift
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
> opening zip
> file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
> error in op
> ening zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error 
> in opening
> zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
> in openin
> g zip file
> [javac] error: error reading 
> D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
> error in op
> ening zip file
> [javac] 5 errors
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Philip Thompson (JIRA)

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

Philip Thompson updated CASSANDRA-7179:
---

Description: 
In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
tags, cassandra does not build via ant on Windows.

This was reproduced on three machines, one using a fresh checkout of C*, and 
fresh install of ant and java. All three machines correctly have the env vars 
ANT_HOME, CASSANDRA_HOME, and JAVA_HOME set.

The following error messages were availabe:

{code}
maven-ant-tasks-retrieve-build:
[artifact:dependencies] [WARNING] POM for 
'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 
'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 
'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 
'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 
'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' is 
invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] Building ant file: 
D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
 [copy] Copying 59 files to 
D:\Users\Philip\cassandra\cassandra\build\lib\jars
 [copy] Copying 59 files to 
D:\Users\Philip\cassandra\cassandra\build\lib\sources
{code}

and then more importantly:

{code}
build-project:
 [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
[javac] Compiling 45 source files to 
D:\Users\Philip\cassandra\cassandra\build\classes\thrift
[javac] error: error reading 
D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
opening zip
file
[javac] error: error reading 
D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
error in op
ening zip file
[javac] error: error reading 
D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error in 
opening
zip file
[javac] error: error reading 
D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
in openin
g zip file
[javac] error: error reading 
D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
error in op
ening zip file
[javac] 5 errors
{code}

  was:
In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
tags, cassandra does not build via ant on Windows.

This was reproduced on three machines, one using a fresh checkout of C*, and 
fresh install of ant and java.

The following error messages were availabe:

{code}
maven-ant-tasks-retrieve-build:
[artifact:dependencies] [WARNING] POM for 
'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 
'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 
'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 
'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 
'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' is 
invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] Building ant file: 
D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
 [copy] Copying 59 files to 
D:\Users\Phili

[jira] [Created] (CASSANDRA-7179) 2.1 and trunk do not build on windows with ant

2014-05-06 Thread Philip Thompson (JIRA)
Philip Thompson created CASSANDRA-7179:
--

 Summary: 2.1 and trunk do not build on windows with ant
 Key: CASSANDRA-7179
 URL: https://issues.apache.org/jira/browse/CASSANDRA-7179
 Project: Cassandra
  Issue Type: Bug
  Components: Packaging
 Environment: Windows 7 x64
Reporter: Philip Thompson
Priority: Minor


In the trunk, the cassandra-2.1 branch as well as the 2.1 beta 1 and beta2 
tags, cassandra does not build via ant on Windows.

This was reproduced on three machines, one using a fresh checkout of C*, and 
fresh install of ant and java.

The following error messages were availabe:

{code}
maven-ant-tasks-retrieve-build:
[artifact:dependencies] [WARNING] POM for 
'org.codehaus.jackson:jackson-mapper-asl:pom:1.7.3:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 
'com.thoughtworks.paranamer:paranamer:pom:2.3:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 
'org.xerial.snappy:snappy-java:pom:1.0.3.2:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 
'org.slf4j:slf4j-api:pom:1.6.1:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 
'org.antlr:antlr-runtime:pom:3.5.2:compile' is invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] [WARNING] POM for 'org.antlr:ST4:pom:4.0.8:compile' is 
invalid.
[artifact:dependencies]
[artifact:dependencies] Its dependencies (if any) will NOT be available to the 
current build.
[artifact:dependencies] Building ant file: 
D:\Users\Philip\cassandra\cassandra/build/build-dependencies.xml
 [copy] Copying 59 files to 
D:\Users\Philip\cassandra\cassandra\build\lib\jars
 [copy] Copying 59 files to 
D:\Users\Philip\cassandra\cassandra\build\lib\sources
{code}

and then more importantly:

{code}
build-project:
 [echo] apache-cassandra: D:\Users\Philip\cassandra\cassandra\build.xml
[javac] Compiling 45 source files to 
D:\Users\Philip\cassandra\cassandra\build\classes\thrift
[javac] error: error reading 
D:\Users\Philip\cassandra\cassandra\build\lib\jars\ST4-4.0.8.jar; error in 
opening zip
file
[javac] error: error reading 
D:\Users\Philip\cassandra\cassandra\build\lib\jars\antlr-runtime-3.5.2.jar; 
error in op
ening zip file
[javac] error: error reading 
D:\Users\Philip\cassandra\cassandra\build\lib\jars\paranamer-2.3.jar; error in 
opening
zip file
[javac] error: error reading 
D:\Users\Philip\cassandra\cassandra\build\lib\jars\slf4j-api-1.6.1.jar; error 
in openin
g zip file
[javac] error: error reading 
D:\Users\Philip\cassandra\cassandra\build\lib\jars\snappy-java-1.0.3.2.jar; 
error in op
ening zip file
[javac] 5 errors
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Assigned] (CASSANDRA-7174) o.a.c.thrift.MultiSliceTest unit test failing in trunk

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler reassigned CASSANDRA-7174:
-

Assignee: Michael Shuler

> o.a.c.thrift.MultiSliceTest unit test failing in trunk
> --
>
> Key: CASSANDRA-7174
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7174
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Michael Shuler
>Priority: Minor
> Fix For: 3.0
>
>
> bisecting..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CASSANDRA-7174) o.a.c.thrift.MultiSliceTest unit test failing in trunk

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler commented on CASSANDRA-7174:
---

Thanks for the pointer - I'll hang on to this ticket for tracking the unit test 
side.

> o.a.c.thrift.MultiSliceTest unit test failing in trunk
> --
>
> Key: CASSANDRA-7174
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7174
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Priority: Minor
> Fix For: 3.0
>
>
> bisecting..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Assigned] (CASSANDRA-7178) o.a.c.db.DirectoriesTest unit test flaps in 1.2

2014-05-06 Thread Michael Shuler (JIRA)

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

Michael Shuler reassigned CASSANDRA-7178:
-

Assignee: Michael Shuler

> o.a.c.db.DirectoriesTest unit test flaps in 1.2
> ---
>
> Key: CASSANDRA-7178
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7178
> Project: Cassandra
>  Issue Type: Test
>  Components: Tests
>Reporter: Michael Shuler
>Assignee: Michael Shuler
>Priority: Minor
> Fix For: 1.2.17
>
>
> bisecting..



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-6312) Create dtest suite for user types

2014-05-06 Thread Ryan McGuire (JIRA)

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

Ryan McGuire updated CASSANDRA-6312:


Fix Version/s: 2.1 rc1

> Create dtest suite for user types
> -
>
> Key: CASSANDRA-6312
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6312
> Project: Cassandra
>  Issue Type: Test
>Reporter: Ryan McGuire
>Assignee: Russ Hatch
> Fix For: 2.1 rc1
>
>
> See examples in CASSANDRA-5590



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CASSANDRA-6312) Create dtest suite for user types

2014-05-06 Thread Ryan McGuire (JIRA)

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

Ryan McGuire updated CASSANDRA-6312:


Labels:   (was: qa-resolved)

> Create dtest suite for user types
> -
>
> Key: CASSANDRA-6312
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6312
> Project: Cassandra
>  Issue Type: Test
>Reporter: Ryan McGuire
>Assignee: Russ Hatch
> Fix For: 2.1 rc1
>
>
> See examples in CASSANDRA-5590



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Reopened] (CASSANDRA-6312) Create dtest suite for user types

2014-05-06 Thread Ryan McGuire (JIRA)

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

Ryan McGuire reopened CASSANDRA-6312:
-


> Create dtest suite for user types
> -
>
> Key: CASSANDRA-6312
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6312
> Project: Cassandra
>  Issue Type: Test
>Reporter: Ryan McGuire
>Assignee: Russ Hatch
> Fix For: 2.1 rc1
>
>
> See examples in CASSANDRA-5590



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[7/7] git commit: Merge branch 'cassandra-2.1' into trunk

2014-05-06 Thread brandonwilliams
Merge branch 'cassandra-2.1' into trunk


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

Branch: refs/heads/trunk
Commit: aae8d8cc7491d5f255c876668939a7a46b51bf76
Parents: 754643c 3d62a55
Author: Brandon Williams 
Authored: Tue May 6 11:37:53 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 11:37:53 2014 -0500

--
 CHANGES.txt |  6 +-
 NEWS.txt| 12 
 2 files changed, 17 insertions(+), 1 deletion(-)
--


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

http://git-wip-us.apache.org/repos/asf/cassandra/blob/aae8d8cc/NEWS.txt
--



[5/7] git commit: Merge branch 'cassandra-2.0' into cassandra-2.1

2014-05-06 Thread brandonwilliams
Merge branch 'cassandra-2.0' into cassandra-2.1

Conflicts:
CHANGES.txt
NEWS.txt
build.xml
debian/changelog


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

Branch: refs/heads/trunk
Commit: 3d62a553032a65c298c1871aab2f47ca397fe703
Parents: aa3c10d 8d93c1f
Author: Brandon Williams 
Authored: Tue May 6 11:37:43 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 11:37:43 2014 -0500

--
 CHANGES.txt |  6 +-
 NEWS.txt| 12 
 2 files changed, 17 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/3d62a553/CHANGES.txt
--
diff --cc CHANGES.txt
index 553f764,d65a694..88ff5d2
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@@ -1,83 -1,43 +1,87 @@@
 -2.0.8
 +2.1.0-rc1
 + * Parallel streaming for sstableloader (CASSANDRA-3668)
 + * Fix bugs in supercolumns handling (CASSANDRA-7138)
 + * Fix ClassClassException on composite dense tables (CASSANDRA-7112)
 + * Cleanup and optimize collation and slice iterators (CASSANDRA-7107)
++ * Upgrade NBHM lib (CASSANDRA-7128) 
 +Merged from 2.0:
   * Correctly delete scheduled range xfers (CASSANDRA-7143)
   * Make batchlog replica selection rack-aware (CASSANDRA-6551)
 - * Allow overriding cassandra-rackdc.properties file (CASSANDRA-7072)
 - * Set JMX RMI port to 7199 (CASSANDRA-7087)
 - * Use LOCAL_QUORUM for data reads at LOCAL_SERIAL (CASSANDRA-6939)
 - * Log a warning for large batches (CASSANDRA-6487)
 - * Queries on compact tables can return more rows that requested 
(CASSANDRA-7052)
 - * USING TIMESTAMP for batches does not work (CASSANDRA-7053)
 - * Fix performance regression from CASSANDRA-5614 (CASSANDRA-6949)
 - * Merge groupable mutations in TriggerExecutor#execute() (CASSANDRA-7047)
 - * Fix CFMetaData#getColumnDefinitionFromColumnName() (CASSANDRA-7074)
 - * Plug holes in resource release when wiring up StreamSession 
(CASSANDRA-7073)
 - * Re-add parameter columns to tracing session (CASSANDRA-6942)
 - * Fix writetime/ttl functions for static columns (CASSANDRA-7081)
   * Suggest CTRL-C or semicolon after three blank lines in cqlsh 
(CASSANDRA-7142)
  Merged from 1.2:
   * Add Cloudstack snitch (CASSANDRA-7147)
   * Update system.peers correctly when relocating tokens (CASSANDRA-7126)
   * Add Google Compute Engine snitch (CASSANDRA-7132)
-  * Upgrade NBHM lib (CASSANDRA-7128) 
 - * Fix nodetool display with vnodes (CASSANDRA-7082)
 - * Fix schema concurrency exceptions (CASSANDRA-6841)
 - * Fix BatchlogManager#deleteBatch() use of millisecond timsestamps
 -   (CASSANDRA-6822)
 - * Fix batchlog to account for CF truncation records (CASSANDRA-6999)
 - * Fix CQLSH parsing of functions and BLOB literals (CASSANDRA-7018)
 - * Require nodetool rebuild_index to specify index names (CASSANDRA-7038)
 - * Ensure that batchlog and hint timeouts do not produce hints 
(CASSANDRA-7058)
 - * Always clean up references in SerializingCache (CASSANDRA-6994)
 - * Don't shut MessagingService down when replacing a node (CASSANDRA-6476)
 - * fix npe when doing -Dcassandra.fd_initial_value_ms (CASSANDRA-6751)
 - * Preserves CQL metadata when updating table from thrift (CASSANDRA-6831)
  
 -
 -2.0.7
 +2.1.0-beta2
 + * Increase default CL space to 8GB (CASSANDRA-7031)
 + * Add range tombstones to read repair digests (CASSANDRA-6863)
 + * Fix BTree.clear for large updates (CASSANDRA-6943)
 + * Fail write instead of logging a warning when unable to append to CL
 +   (CASSANDRA-6764)
 + * Eliminate possibility of CL segment appearing twice in active list 
 +   (CASSANDRA-6557)
 + * Apply DONTNEED fadvise to commitlog segments (CASSANDRA-6759)
 + * Switch CRC component to Adler and include it for compressed sstables 
 +   (CASSANDRA-4165)
 + * Allow cassandra-stress to set compaction strategy options (CASSANDRA-6451)
 + * Add broadcast_rpc_address option to cassandra.yaml (CASSANDRA-5899)
 + * Auto reload GossipingPropertyFileSnitch config (CASSANDRA-5897)
 + * Fix overflow of memtable_total_space_in_mb (CASSANDRA-6573)
 + * Fix ABTC NPE and apply update function correctly (CASSANDRA-6692)
 + * Allow nodetool to use a file or prompt for password (CASSANDRA-6660)
 + * Fix AIOOBE when concurrently accessing ABSC (CASSANDRA-6742)
 + * Fix assertion error in ALTER TYPE RENAME (CASSANDRA-6705)
 + * Scrub should not always clear out repaired status (CASSANDRA-5351)
 + * Improve handling of range tombstone for wide partitions (CASSANDRA-6446)
 + * Fix ClassCastException for compact table with composites (CASSANDRA-6738)
 + * Fix potentially repairing with wrong nodes (CASSANDRA-6808)
 + * Chan

[4/7] git commit: fix changes/news

2014-05-06 Thread brandonwilliams
fix changes/news


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

Branch: refs/heads/cassandra-2.1
Commit: 8d93c1fcba4112956d10c90560471eaba84c64c9
Parents: 0068533
Author: Brandon Williams 
Authored: Tue May 6 11:27:32 2014 -0500
Committer: Brandon Williams 
Committed: Tue May 6 11:27:32 2014 -0500

--
 CHANGES.txt | 8 
 NEWS.txt| 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/cassandra/blob/8d93c1fc/CHANGES.txt
--
diff --git a/CHANGES.txt b/CHANGES.txt
index 25a5cc1..d65a694 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -22,10 +22,6 @@ Merged from 1.2:
  * Fix schema concurrency exceptions (CASSANDRA-6841)
  * Fix BatchlogManager#deleteBatch() use of millisecond timsestamps
(CASSANDRA-6822)
- * Continue assassinating even if the endpoint vanishes (CASSANDRA-6787)
- * Schedule schema pulls on change (CASSANDRA-6971)
- * Non-droppable verbs shouldn't be dropped from OTC (CASSANDRA-6980)
- * Shutdown batchlog executor in SS#drain() (CASSANDRA-7025)
  * Fix batchlog to account for CF truncation records (CASSANDRA-6999)
  * Fix CQLSH parsing of functions and BLOB literals (CASSANDRA-7018)
  * Require nodetool rebuild_index to specify index names (CASSANDRA-7038)
@@ -38,6 +34,10 @@ Merged from 1.2:
 
 2.0.7
  * Put nodes in hibernate when join_ring is false (CASSANDRA-6961)
+ * Continue assassinating even if the endpoint vanishes (CASSANDRA-6787)
+ * Non-droppable verbs shouldn't be dropped from OTC (CASSANDRA-6980)
+ * Shutdown batchlog executor in SS#drain() (CASSANDRA-7025)
+ * Schedule schema pulls on change (CASSANDRA-6971)
  * Avoid early loading of non-system keyspaces before compaction-leftovers 
cleanup at startup (CASSANDRA-6913)
  * Restrict Windows to parallel repairs (CASSANDRA-6907)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/8d93c1fc/NEWS.txt
--
diff --git a/NEWS.txt b/NEWS.txt
index 04fa986..35e48d6 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -23,7 +23,7 @@ New features
 
 Upgrading
 -
-- Nothing specific to this release, but please see 2.0.8 if you are 
upgrading
+- Nothing specific to this release, but please see 2.0.7 if you are 
upgrading
   from a previous version.
 
 



  1   2   >