usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdun...@apache.org
Subject [09/15] usergrid git commit: Fixes reporter issue and marks test as ignored. When run regularly it kills Cassandra. I will unignore once merged with the new sharding logic.
Date Thu, 22 Oct 2015 18:29:38 GMT
Fixes reporter issue and marks test as ignored. When run regularly it kills Cassandra.  I will
unignore once merged with the new sharding logic.


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

Branch: refs/heads/2.1-release
Commit: f3693c8570e018d924add2a4851a2db7f805ccb0
Parents: 10d0a07
Author: Todd Nine <tnine@apigee.com>
Authored: Wed Oct 21 18:48:16 2015 -0600
Committer: Todd Nine <tnine@apigee.com>
Committed: Wed Oct 21 18:48:16 2015 -0600

----------------------------------------------------------------------
 .../graph/GraphManagerShardConsistencyIT.java          | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/f3693c85/stack/corepersistence/graph/src/test/java/org/apache/usergrid/persistence/graph/GraphManagerShardConsistencyIT.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/graph/src/test/java/org/apache/usergrid/persistence/graph/GraphManagerShardConsistencyIT.java
b/stack/corepersistence/graph/src/test/java/org/apache/usergrid/persistence/graph/GraphManagerShardConsistencyIT.java
index b82c28a..9ee7b95 100644
--- a/stack/corepersistence/graph/src/test/java/org/apache/usergrid/persistence/graph/GraphManagerShardConsistencyIT.java
+++ b/stack/corepersistence/graph/src/test/java/org/apache/usergrid/persistence/graph/GraphManagerShardConsistencyIT.java
@@ -41,6 +41,7 @@ import javax.annotation.Nullable;
 
 import org.junit.After;
 import org.junit.Before;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -86,9 +87,7 @@ public class GraphManagerShardConsistencyIT {
 
     private static final Meter writeMeter = registry.meter( "writeThroughput" );
 
-    private static final Slf4jReporter reporter =
-        Slf4jReporter.forRegistry( registry ).outputTo( log ).convertRatesTo( TimeUnit.SECONDS
)
-                     .convertDurationsTo( TimeUnit.MILLISECONDS ).build();
+    private Slf4jReporter reporter;
 
 
     protected ApplicationScope scope;
@@ -133,6 +132,11 @@ public class GraphManagerShardConsistencyIT {
         scope = new ApplicationScopeImpl( IdGenerator.createId( UUID.fromString( uuidString
), "test" ) );
 
 
+        reporter =
+                Slf4jReporter.forRegistry( registry ).outputTo( log ).convertRatesTo( TimeUnit.SECONDS
)
+                             .convertDurationsTo( TimeUnit.MILLISECONDS ).build();
+
+
         reporter.start( 10, TimeUnit.SECONDS );
     }
 
@@ -383,7 +387,8 @@ public class GraphManagerShardConsistencyIT {
     }
 
 
-    @Test
+    @Test(timeout=120000)
+    @Ignore("This works, but is occasionally causing cassandra to fall over.  Unignore when
merged with new shard strategy")
     public void writeThousandsDelete()
         throws InterruptedException, ExecutionException, MigrationException, UnsupportedEncodingException
{
 


Mime
View raw message