brianfrankcooper / YCSB

Yahoo! Cloud Serving Benchmark
Apache License 2.0
4.93k stars 2.23k forks source link

[cloudspanner] set max sessions #1665

Closed erikgrinaker closed 5 months ago

erikgrinaker commented 1 year ago

Previously, using the Cloud Spanner client with threadcount above 400 would error out with:

java.lang.IllegalArgumentException: Min sessions(1024) must be <= max sessions(400)

This is because the default max session limit is set to 400. This patch sets the max session limit to the number of threads, to allow using more than 400 threads.