You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2014/01/10 20:54:37 UTC
[1/4] git commit: fix tests
Updated Branches:
refs/heads/cassandra-1.2 cd381f069 -> 1997b7b40
refs/heads/trunk ebc712aeb -> 82b086f47
fix tests
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/1997b7b4
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/1997b7b4
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/1997b7b4
Branch: refs/heads/cassandra-1.2
Commit: 1997b7b409d12d04f4726ea2631a89601551356c
Parents: cd381f0
Author: Brandon Williams <br...@apache.org>
Authored: Fri Jan 10 13:50:35 2014 -0600
Committer: Brandon Williams <br...@apache.org>
Committed: Fri Jan 10 13:50:35 2014 -0600
----------------------------------------------------------------------
.../cassandra/service/LeaveAndBootstrapTest.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/1997b7b4/test/unit/org/apache/cassandra/service/LeaveAndBootstrapTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/service/LeaveAndBootstrapTest.java b/test/unit/org/apache/cassandra/service/LeaveAndBootstrapTest.java
index 72a0dc6..658a4a9 100644
--- a/test/unit/org/apache/cassandra/service/LeaveAndBootstrapTest.java
+++ b/test/unit/org/apache/cassandra/service/LeaveAndBootstrapTest.java
@@ -24,7 +24,7 @@ import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.*;
-import org.apache.cassandra.db.SystemKeyspace;
+import org.apache.cassandra.db.SystemTable;
import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.cassandra.config.Schema;
import org.junit.Test;
@@ -661,14 +661,14 @@ public class LeaveAndBootstrapTest
VersionedValue.VersionedValueFactory valueFactory = new VersionedValue.VersionedValueFactory(partitioner);
// create a ring of 2 nodes
- ArrayList<Token> endpointTokens = new ArrayList<>();
- List<InetAddress> hosts = new ArrayList<>();
+ ArrayList<Token> endpointTokens = new ArrayList<Token>();
+ List<InetAddress> hosts = new ArrayList<InetAddress>();
Util.createInitialRing(ss, partitioner, endpointTokens, new ArrayList<Token>(), hosts, new ArrayList<UUID>(), 2);
InetAddress toRemove = hosts.get(1);
- SystemKeyspace.updatePeerInfo(toRemove, "data_center", "'dc42'");
- SystemKeyspace.updatePeerInfo(toRemove, "rack", "'rack42'");
- assertEquals("rack42", SystemKeyspace.loadDcRackInfo().get(toRemove).get("rack"));
+ SystemTable.updatePeerInfo(toRemove, "data_center", "'dc42'");
+ SystemTable.updatePeerInfo(toRemove, "rack", "'rack42'");
+ assertEquals("rack42", SystemTable.loadDcRackInfo().get(toRemove).get("rack"));
// mark the node as removed
Gossiper.instance.injectApplicationState(toRemove, ApplicationState.STATUS,
@@ -678,7 +678,7 @@ public class LeaveAndBootstrapTest
// state changes made after the endpoint has left should be ignored
ss.onChange(hosts.get(1), ApplicationState.RACK,
valueFactory.rack("rack9999"));
- assertEquals("rack42", SystemKeyspace.loadDcRackInfo().get(toRemove).get("rack"));
+ assertEquals("rack42", SystemTable.loadDcRackInfo().get(toRemove).get("rack"));
}
private static Collection<InetAddress> makeAddrs(String... hosts) throws UnknownHostException
[2/4] git commit: fix tests
Posted by br...@apache.org.
fix tests
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/1997b7b4
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/1997b7b4
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/1997b7b4
Branch: refs/heads/trunk
Commit: 1997b7b409d12d04f4726ea2631a89601551356c
Parents: cd381f0
Author: Brandon Williams <br...@apache.org>
Authored: Fri Jan 10 13:50:35 2014 -0600
Committer: Brandon Williams <br...@apache.org>
Committed: Fri Jan 10 13:50:35 2014 -0600
----------------------------------------------------------------------
.../cassandra/service/LeaveAndBootstrapTest.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/1997b7b4/test/unit/org/apache/cassandra/service/LeaveAndBootstrapTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/service/LeaveAndBootstrapTest.java b/test/unit/org/apache/cassandra/service/LeaveAndBootstrapTest.java
index 72a0dc6..658a4a9 100644
--- a/test/unit/org/apache/cassandra/service/LeaveAndBootstrapTest.java
+++ b/test/unit/org/apache/cassandra/service/LeaveAndBootstrapTest.java
@@ -24,7 +24,7 @@ import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.*;
-import org.apache.cassandra.db.SystemKeyspace;
+import org.apache.cassandra.db.SystemTable;
import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.cassandra.config.Schema;
import org.junit.Test;
@@ -661,14 +661,14 @@ public class LeaveAndBootstrapTest
VersionedValue.VersionedValueFactory valueFactory = new VersionedValue.VersionedValueFactory(partitioner);
// create a ring of 2 nodes
- ArrayList<Token> endpointTokens = new ArrayList<>();
- List<InetAddress> hosts = new ArrayList<>();
+ ArrayList<Token> endpointTokens = new ArrayList<Token>();
+ List<InetAddress> hosts = new ArrayList<InetAddress>();
Util.createInitialRing(ss, partitioner, endpointTokens, new ArrayList<Token>(), hosts, new ArrayList<UUID>(), 2);
InetAddress toRemove = hosts.get(1);
- SystemKeyspace.updatePeerInfo(toRemove, "data_center", "'dc42'");
- SystemKeyspace.updatePeerInfo(toRemove, "rack", "'rack42'");
- assertEquals("rack42", SystemKeyspace.loadDcRackInfo().get(toRemove).get("rack"));
+ SystemTable.updatePeerInfo(toRemove, "data_center", "'dc42'");
+ SystemTable.updatePeerInfo(toRemove, "rack", "'rack42'");
+ assertEquals("rack42", SystemTable.loadDcRackInfo().get(toRemove).get("rack"));
// mark the node as removed
Gossiper.instance.injectApplicationState(toRemove, ApplicationState.STATUS,
@@ -678,7 +678,7 @@ public class LeaveAndBootstrapTest
// state changes made after the endpoint has left should be ignored
ss.onChange(hosts.get(1), ApplicationState.RACK,
valueFactory.rack("rack9999"));
- assertEquals("rack42", SystemKeyspace.loadDcRackInfo().get(toRemove).get("rack"));
+ assertEquals("rack42", SystemTable.loadDcRackInfo().get(toRemove).get("rack"));
}
private static Collection<InetAddress> makeAddrs(String... hosts) throws UnknownHostException
[4/4] git commit: Merge branch 'cassandra-2.0' into trunk
Posted by br...@apache.org.
Merge branch 'cassandra-2.0' into trunk
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/82b086f4
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/82b086f4
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/82b086f4
Branch: refs/heads/trunk
Commit: 82b086f478d1979e2776fdb724c228a19a9de05b
Parents: ebc712a e2209d5
Author: Brandon Williams <br...@apache.org>
Authored: Fri Jan 10 13:52:43 2014 -0600
Committer: Brandon Williams <br...@apache.org>
Committed: Fri Jan 10 13:52:43 2014 -0600
----------------------------------------------------------------------
----------------------------------------------------------------------
[3/4] git commit: Merge branch 'cassandra-1.2' into cassandra-2.0
Posted by br...@apache.org.
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/e2209d59
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/e2209d59
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/e2209d59
Branch: refs/heads/trunk
Commit: e2209d5983a623659bac4693e8afb815771cd54c
Parents: cd381f0 1997b7b
Author: Brandon Williams <br...@apache.org>
Authored: Fri Jan 10 13:52:35 2014 -0600
Committer: Brandon Williams <br...@apache.org>
Committed: Fri Jan 10 13:52:35 2014 -0600
----------------------------------------------------------------------
----------------------------------------------------------------------