Details
-
Bug
-
Status: Open
-
Low
-
Resolution: Unresolved
-
None
-
Low
Description
cassandra-stress when run with tiny n, throws org.apache.commons.math3.exception.NotStrictlyPositiveException.
Now, n=1 doesn't really make any sense, w/ 50k writes used just for warmup, but an exception is still an exception. Labeled w/ priority: Trivial.
Profile used: http://pastebin.com/raw.php?i=9U5EMdVq
tools/bin/cassandra-stress user profile=partition.yaml ops\(insert=1\) n=1 -rate threads=50 INFO 18:21:59 Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) Connected to cluster: Test Cluster Datatacenter: datacenter1; Host: localhost/127.0.0.1; Rack: rack1 INFO 18:21:59 New Cassandra host localhost/127.0.0.1:9042 added Created schema. Sleeping 1s for propagation. Exception in thread "main" org.apache.commons.math3.exception.NotStrictlyPositiveException: standard deviation (0) at org.apache.commons.math3.distribution.NormalDistribution.<init>(NormalDistribution.java:108) at org.apache.cassandra.stress.settings.OptionDistribution$GaussianFactory.get(OptionDistribution.java:418) at org.apache.cassandra.stress.generate.SeedManager.<init>(SeedManager.java:59) at org.apache.cassandra.stress.settings.SettingsCommandUser.getFactory(SettingsCommandUser.java:78) at org.apache.cassandra.stress.StressAction.run(StressAction.java:61) at org.apache.cassandra.stress.Stress.main(Stress.java:109)
On cassandra-2.1 HEAD, I cannot reproduce it, but get a different exception, with n=10:
Exception in thread "Thread-13" java.lang.AssertionError at org.apache.cassandra.stress.util.DynamicList.remove(DynamicList.java:156) at org.apache.cassandra.stress.generate.Seed.remove(Seed.java:83) at org.apache.cassandra.stress.generate.SeedManager.markLastWrite(SeedManager.java:115) at org.apache.cassandra.stress.generate.PartitionIterator$MultiRowIterator.setHasNext(PartitionIterator.java:561) at org.apache.cassandra.stress.generate.PartitionIterator$MultiRowIterator.seek(PartitionIterator.java:333) at org.apache.cassandra.stress.generate.PartitionIterator$MultiRowIterator.reset(PartitionIterator.java:242) at org.apache.cassandra.stress.generate.PartitionIterator.reset(PartitionIterator.java:99) at org.apache.cassandra.stress.Operation.ready(Operation.java:110) at org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:288)