cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject [01/15] cassandra git commit: Fix hanging HintedHandOffTest on MacOS
Date Thu, 31 Aug 2017 13:50:10 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 0ffce2e93 -> 5469f2120
  refs/heads/cassandra-2.2 f210b1776 -> 4d90573c5
  refs/heads/cassandra-3.0 5e7f60f6b -> f791c2690
  refs/heads/cassandra-3.11 425880ffb -> cd3aca036
  refs/heads/trunk 335d8371a -> 8ed41fbc5


Fix hanging HintedHandOffTest on MacOS

InetAddress.getLocalHost() hangs the test on MacOS; replaced it with
InetAddress.getByName() - the test passes now, which saves us about 4
minutes of runtime on MacOS.


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

Branch: refs/heads/cassandra-2.1
Commit: 5469f2120423504374900eada2f7b0bcae603c47
Parents: 0ffce2e
Author: Aleksey Yeschenko <aleksey@yeschenko.com>
Authored: Thu Aug 31 14:41:03 2017 +0100
Committer: Aleksey Yeschenko <aleksey@yeschenko.com>
Committed: Thu Aug 31 14:41:03 2017 +0100

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/db/HintedHandOffTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/5469f212/test/unit/org/apache/cassandra/db/HintedHandOffTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/db/HintedHandOffTest.java b/test/unit/org/apache/cassandra/db/HintedHandOffTest.java
index ad1e6cf..a2b0ae1 100644
--- a/test/unit/org/apache/cassandra/db/HintedHandOffTest.java
+++ b/test/unit/org/apache/cassandra/db/HintedHandOffTest.java
@@ -85,7 +85,7 @@ public class HintedHandOffTest extends SchemaLoader
     public void testHintsMetrics() throws Exception
     {
         for (int i = 0; i < 99; i++)
-            HintedHandOffManager.instance.metrics.incrPastWindow(InetAddress.getLocalHost());
+            HintedHandOffManager.instance.metrics.incrPastWindow(InetAddress.getByName("127.0.0.1"));
         HintedHandOffManager.instance.metrics.log();
 
         UntypedResultSet rows = executeInternal("SELECT hints_dropped FROM system." + SystemKeyspace.PEER_EVENTS_CF);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message