Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent Toxiproxy tests in CI #1769

Closed
rnorth opened this issue Aug 22, 2019 · 3 comments
Closed

Intermittent Toxiproxy tests in CI #1769

rnorth opened this issue Aug 22, 2019 · 3 comments

Comments

@rnorth
Copy link
Member

rnorth commented Aug 22, 2019

See https://dev.azure.com/testcontainers/testcontainers-java/_build/results?buildId=1265&view=logs:

Gradle Test Executor 22 > org.testcontainers.containers.ToxiproxyTest > testLatencyViaProxy FAILED
    redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out
        at redis.clients.jedis.util.RedisInputStream.ensureFill(RedisInputStream.java:205)
        at redis.clients.jedis.util.RedisInputStream.readByte(RedisInputStream.java:43)
        at redis.clients.jedis.Protocol.process(Protocol.java:154)
        at redis.clients.jedis.Protocol.read(Protocol.java:219)
        at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:309)
        at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:236)
        at redis.clients.jedis.Jedis.set(Jedis.java:149)
        at org.testcontainers.containers.ToxiproxyTest.testLatencyViaProxy(ToxiproxyTest.java:54)

        Caused by:
        java.net.SocketTimeoutException: Read timed out
            at java.base/java.net.SocketInputStream.socketRead0(Native Method)
            at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
            at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168)
            at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
            at java.base/java.net.SocketInputStream.read(SocketInputStream.java:126)
            at redis.clients.jedis.util.RedisInputStream.ensureFill(RedisInputStream.java:199)
            ... 7 more

I'm not sure of the cause at present; I wonder if there is some time lag on creation of the proxy that we need to take into account.

It would be worth investigating further, but I'll add a @Flaky annotation for now.

@stale
Copy link

stale bot commented Nov 20, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.

@stale stale bot added the stale label Nov 20, 2019
@stale
Copy link

stale bot commented Dec 4, 2019

This issue has been automatically closed due to inactivity. We apologise if this is still an active problem for you, and would ask you to re-open the issue if this is the case.

@stale stale bot closed this as completed Dec 4, 2019
@slovdahl
Copy link
Contributor

slovdahl commented Jun 4, 2021

I have no idea if it's the same problem, but we're getting occasional timeouts using Toxiproxy between a test and a mockserver instance started locally in the same JVM as the test. No success in reproducing it locally yet, so not much to go on (yet). 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants