Closed GoogleCodeExporter closed 9 years ago
Interesting. The test method testInfinity_Bursty() is supposed to check this,
but it must miss some case that your test catches. I'll look into it.
Original comment by cpov...@google.com
on 25 Jun 2014 at 2:09
It looks like the test doesn't catch this because no time elapses between the
creation and the changing of the rate. As soon as I tell the fake stopwatch
that time has elapsed, things go haywire.
Original comment by cpov...@google.com
on 25 Jun 2014 at 2:19
For a fix, I think we can get by with the same test as
SmoothWarmingUp.doSetRate has. I don't have 100% confidence in that -- in
particular, I can imagine that it's possible for maxPermits or another computed
value to overflow to POSITIVE_INFINITY in another way -- but based on the facts
that (a) SmoothWarmingUp is set up for this and (b) we had tests for this, I
suspect that we'd given at least a passing thought to infinite-rate
RateLimiters before.
Thanks for the report. I'll post again when the fix is submitted.
Original comment by cpov...@google.com
on 25 Jun 2014 at 3:08
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<issue id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:08
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:17
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:07
Original issue reported on code.google.com by
jroes...@gmail.com
on 25 Jun 2014 at 2:02