usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject git commit: make sure numUsers is divisible by duration
Date Thu, 06 Nov 2014 15:49:21 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/key-row-sharding b6a7fc0b4 -> 2da184ce0


make sure numUsers is divisible by duration


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

Branch: refs/heads/key-row-sharding
Commit: 2da184ce0fbee79a2d7836c1be4329a374d70319
Parents: b6a7fc0
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Thu Nov 6 08:49:06 2014 -0700
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Thu Nov 6 08:49:06 2014 -0700

----------------------------------------------------------------------
 .../src/main/scala/org/apache/usergrid/settings/Settings.scala    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/2da184ce/stack/loadtests/src/main/scala/org/apache/usergrid/settings/Settings.scala
----------------------------------------------------------------------
diff --git a/stack/loadtests/src/main/scala/org/apache/usergrid/settings/Settings.scala b/stack/loadtests/src/main/scala/org/apache/usergrid/settings/Settings.scala
index 30cd4ab..401507f 100755
--- a/stack/loadtests/src/main/scala/org/apache/usergrid/settings/Settings.scala
+++ b/stack/loadtests/src/main/scala/org/apache/usergrid/settings/Settings.scala
@@ -46,6 +46,9 @@ object Settings {
     println(s"Changing numUsers $numUsers to duration length $duration")
     numUsers = duration
   }
+  if(numUsers % duration != 0){
+    throw new Exception(s"please use numUsers ($numUsers) that is evenly divisible by duration($duration)")
+  }
   // Geolocation settings
   val centerLatitude:Double = 37.442348 // latitude of center point
   val centerLongitude:Double = -122.138268 // longitude of center point


Mime
View raw message