Details
-
Improvement
-
Status: Needs Committer
-
Normal
-
Resolution: Unresolved
-
None
-
Low Hanging Fruit
-
All
-
None
-
Description
The inline docs say:
Setting this to 0 disables throttling.
However, on startup, we throw this error:
Caused by: java.lang.IllegalArgumentException: Invalid data rate: 0 Accepted units: MiB/s, KiB/s, B/s where case matters and only non-negative values a> Apr 23 23:12:01 cassandra0 cassandra[3424]: at org.apache.cassandra.config.DataRateSpec.<init>(DataRateSpec.java:52) Apr 23 23:12:01 cassandra0 cassandra[3424]: at org.apache.cassandra.config.DataRateSpec.<init>(DataRateSpec.java:61) Apr 23 23:12:01 cassandra0 cassandra[3424]: at org.apache.cassandra.config.DataRateSpec$LongBytesPerSecondBound.<init>(DataRateSpec.java:232) Apr 23 23:12:01 cassandra0 cassandra[3424]: ... 27 common frames omitted
We should allow 0 without a unit attached for data, duration, and data spec config parameters, as 0 is always 0 no matter the unit.