GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Tasks scheduled on EpollEventLoop are delayed in 4.1.76 · Issue #14368 · netty/netty Closed Milestone DescriptionExpected behaviorA task scheduled on an EpollEventLoop is expected to fire after the specified delay. Actual behaviorStarting from Netty-4.1.76, scheduled tasks may be delayed or missed in applications that are regularly interrupted by signals. Steps to reproduceIt is hard to reproduce in isolation. I'll describe the behavior we've seen in our test environment, and will try to come up with minimal code example demonstrating the problem. Our server application is using scheduled tasks to track different types of timeouts (connection/stream idle timeouts, connection time-to-live, etc). After upgrading Netty from 4.1.68 to 4.1.111 the tests verifying server timeouts started failing because the scheduled tasks were delayed by a few seconds or never triggered. I was able to track the problem down to a change in Netty's In our case the application uses a profiler library that triggers SIGVTALRM signal every second, and in our test environment, the signal was consistently landing on the thread serving an EpollEventLoop, and interrupted
As far as I understood, this has not been a problem with older versions of Netty because prior to Epoll timer optimization introduced in 4.1.76, One way to fix this would be to track the time spent in a failed In fact, when I disable Epoll timer optimization by setting Minimal yet complete reproducer code (or URL to code)WIP. It is hard to predict which thread will pick up a signal in a multi-threaded application (decided by kernel and implementation/version dependent). So far could only reproduce this in our test environment, where signal lands on the EpollEventLoop thread serving a connection. In a similar minimal example app, the same signal is picked up by other random threads. Netty versionThe issue originally discovered in 4.1.111, but it seems to go back to 4.1.76 when Epoll timer optimization was introduced - 86004b7 JVM version (e.g.
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |