You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using KLoadGen from the master branch as of a few weeks ago.
I am getting an IllegalArgumentException “start value must be smaller or equal to end value” for one of my byte_decimal fields.
in the ui I see the field name, type of byte decimal, length 0, and field values list of [.05]. I assumed that it would use the .05 value I gave it.
When I use a remote debugger, RandomObject appears to be getting a fieldValuesList of length 0. Because my precision is 29, doing Math.pow(10, 29-1) and casting to long gives me Long.MAX_VALUE. Multiplying by 10 actually gives me a negative number. RandomUtils.nextLong then blows up because the end value cannot be less than the start value.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am using KLoadGen from the master branch as of a few weeks ago.
I am getting an IllegalArgumentException “start value must be smaller or equal to end value” for one of my byte_decimal fields.
in the ui I see the field name, type of byte decimal, length 0, and field values list of [.05]. I assumed that it would use the .05 value I gave it.
When I use a remote debugger, RandomObject appears to be getting a fieldValuesList of length 0. Because my precision is 29, doing Math.pow(10, 29-1) and casting to long gives me Long.MAX_VALUE. Multiplying by 10 actually gives me a negative number. RandomUtils.nextLong then blows up because the end value cannot be less than the start value.
Why is my field values list being ignored?
thanks
Beta Was this translation helpful? Give feedback.
All reactions