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

Lettuce keeps trying to reconnect #144

Closed
ipekbaysal-vng opened this issue Feb 16, 2022 · 3 comments
Closed

Lettuce keeps trying to reconnect #144

ipekbaysal-vng opened this issue Feb 16, 2022 · 3 comments
Assignees

Comments

@ipekbaysal-vng
Copy link

What's not working?

Hi, we start redis within our unit test framework as below:

@BeforeAll
static void setup() {
redisServer = RedisServer.builder().port(6379).build();
redisServer.start();
}

and we shutdown it like that:

@AfterAll
static void clean() throws InterruptedException {
    redisServer.stop();
}

but after test passes and redis is shutdown. Lettuce within rQueue is still trying to reconnect. It causes our test to hang for a while. Can you let me know how would we avoid that? We have lots of these logs:

{"@timestamp":"2022-02-16T16:55:37.599Z","@Version":"1","level":"INFO","message":"z Reconnecting, last destination was localhost/:6379"}
{"@timestamp":"2022-02-16T16:55:37.605Z","@Version":"1","level":"WARN","message":"z Cannot reconnect to [localhost/:6379]: Connection refused: localhost/127.0.0

Another question I have is: Do we need to start redis server, to be able to use rQueue? I would expect some sort of embedded redis would start within the library. But if I do not start redis explicitly I get redis connection errors.

@sonus21
Copy link
Owner

sonus21 commented Feb 18, 2022

HI @ipekbaysal-vng
Yes we need to start Redis manually like you do though I'm not quite sure why it's printing these lines.

Can you run this test and report me if you find the similar log?

https://github.com/sonus21/rqueue/blob/master/rqueue-spring-boot-starter/src/test/java/com/github/sonus21/rqueue/spring/boot/tests/integration/JobCheckinTest.java

@sonus21 sonus21 closed this as completed Jun 12, 2022
@jrsperry
Copy link

jrsperry commented Mar 7, 2024

I'm getting the same problem, using version 3.1.1. I also have an afterall hook and get the same exact logs.

@sonus21
Copy link
Owner

sonus21 commented Mar 7, 2024

@jrsperry can you share stacktrace or sample app with this issue? I'll try to debug and update here.

@sonus21 sonus21 reopened this Mar 7, 2024
@sonus21 sonus21 closed this as completed May 14, 2024
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

No branches or pull requests

3 participants