Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

num_unique_keys 1 generates bound must be positive error #50

Open
markwjeske opened this issue Feb 22, 2021 · 0 comments
Open

num_unique_keys 1 generates bound must be positive error #50

markwjeske opened this issue Feb 22, 2021 · 0 comments

Comments

@markwjeske
Copy link

Running this command from step 4 of the docs https://docs.yugabyte.com/latest/explore/follower-reads/macos/

    java -jar ./yb-sample-apps.jar \
            --workload CassandraKeyValue \
            --nodes 127.0.0.1:9042 \
            --nouuid \
            --num_unique_keys 1 \
            --num_threads_write 1 \
            --num_threads_read 1 \
            --value_size 10240

generates an error:

810 [main] INFO com.yugabyte.sample.apps.AppBase - Created a Cassandra table using query: [CREATE TABLE IF NOT EXISTS CassandraKeyValue (k varchar, v blob, primary key (k));]
833 [Thread-3] INFO com.yugabyte.sample.apps.AppBase - Caught Exception:
java.lang.IllegalArgumentException: bound must be positive
at java.util.concurrent.ThreadLocalRandom.nextLong(ThreadLocalRandom.java:403)
at com.yugabyte.sample.common.SimpleLoadGenerator.getKeyToWrite(SimpleLoadGenerator.java:180)
at com.yugabyte.sample.apps.CassandraKeyValueBase.doWrite(CassandraKeyValueBase.java:147)
at com.yugabyte.sample.apps.AppBase.performWrite(AppBase.java:742)
at com.yugabyte.sample.common.IOPSThread.run(IOPSThread.java:87)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant