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

WebClient resolver doing eventloop-work on worker #5891

Open
tobias- opened this issue Sep 4, 2024 · 0 comments
Open

WebClient resolver doing eventloop-work on worker #5891

tobias- opened this issue Sep 4, 2024 · 0 comments
Labels
Milestone

Comments

@tobias-
Copy link
Contributor

tobias- commented Sep 4, 2024

It happens relatively seldom, but maybe once every 10 minutes or so and is only seen when debugging (as it's an assertion that's reporting the issue).

There are multiple WebClient's in the VM, but the simplest one that keeps throwing this is (yes, creates a new WebClient for every request, but it's one request every couple of minutes):

WebClient.of().get("https://host/path")
                .aggregate()
                .get()
2024-09-04T10:38:24.422795111Z {179} [WARNING] AbstractEventExecutor A task raised an exception. Task: com.linecorp.armeria.client.RefreshingAddressResolver$$Lambda$1341/0x0000000101491218@569ce20b[armeria-common-worker-epoll-3-3]
java.lang.AssertionError
    at com.linecorp.armeria.internal.client.dns.DefaultDnsResolver.resolveOne(DefaultDnsResolver.java:88)
    at com.linecorp.armeria.internal.client.dns.DefaultDnsResolver.resolve(DefaultDnsResolver.java:81)
    at com.linecorp.armeria.client.RefreshingAddressResolver.sendQueries(RefreshingAddressResolver.java:161)
    at com.linecorp.armeria.client.RefreshingAddressResolver.access$500(RefreshingAddressResolver.java:56)
    at com.linecorp.armeria.client.RefreshingAddressResolver$CacheEntry.refresh(RefreshingAddressResolver.java:356)
    at io.netty.util.concurrent.AbstractEventExecutor.runTask$$$capture(AbstractEventExecutor.java:173)
    at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:166)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469)
    at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:405)
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994)
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.base/java.lang.Thread.run(Thread.java:833)

Issue was present in at least 1.27.3 and is still present in 1.30.0.

@-mention me in the discord thread if you need help reproducing it/stepit or more logs.

@trustin trustin added the defect label Sep 5, 2024
@ikhoon ikhoon added this to the 1.31.0 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants