Skip to content

Conversation

@worldtiki
Copy link
Contributor

No description provided.


try {
// sleep for a moment to avoid excessive log spam
Thread.sleep(500);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have RateLimiter available on classpath, could you please consider using it instead?
Also, 500ms is rather long initial delay.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, of course.

Copy link
Member

@rnorth rnorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me - happy to approve.
Thanks for this @worldtiki.

@rnorth rnorth merged commit a299547 into testcontainers:master Feb 5, 2020
@worldtiki worldtiki deleted the sleep_between_ryuk_checks branch February 6, 2020 21:21
artjomka pushed a commit to artjomka/testcontainers-java that referenced this pull request Feb 28, 2020
…tcontainers#2287)

* Add small delay in while loop to avoid spamming logs (ResourceReaper)

* Add small delay in while loop to avoid spamming logs (ResourceReaper) - Replaced Thread.sleep with RateLimiter
@rnorth rnorth added this to the 1.13.0 milestone Mar 5, 2020
@rnorth
Copy link
Member

rnorth commented Mar 5, 2020

Released in 1.13.0! Thanks for the contribution @worldtiki 😃

quincy pushed a commit to quincy/testcontainers-java that referenced this pull request May 28, 2020
…tcontainers#2287)

* Add small delay in while loop to avoid spamming logs (ResourceReaper)

* Add small delay in while loop to avoid spamming logs (ResourceReaper) - Replaced Thread.sleep with RateLimiter
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

Successfully merging this pull request may close these issues.

3 participants