thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (THRIFT-4251) Epoll Selector Bug
Date Sun, 13 Aug 2017 20:16:00 GMT


ASF GitHub Bot commented on THRIFT-4251:

Github user jeking3 commented on the issue:
    However, as with all the other issues, they were already resolved, so the fact you are
still seeing this with a recent kernel and java version means there's still a bug that needs
to be fixed somewhere.  There shouldn't be a workaround in every Java program that uses a
Selector().  I would still encourage you to come up with a simple example that demonstrates
it without Thrift involved and report it upstream.

> Epoll Selector Bug
> ------------------
>                 Key: THRIFT-4251
>                 URL:
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Compiler, Java - Library
>    Affects Versions: 0.10.0
>         Environment: Linux version 3.10.0-327.el7.x86_64 (
> java version "1.8.0_131"
>            Reporter: JohnnyLiao
>              Labels: epoll, jdk, selector
> Thrift java unsolve the infamous epoll bug. It's consum 100% cpu resource when this occured.
It seems to affect any NIO based Java server applications running in the specified environment.
Some projects provide workarounds for similar JDK bugs, for example replaces the current Selector
of this with newly created Selector.
> Stack Trace:
> "Thread-46" #95 prio=5 os_prio=0 tid=0x00007fc79cd02800 nid=0xb1 runnable [0x00007fc580bd1000]
>    java.lang.Thread.State: RUNNABLE
>         at Method)
>         at
>         at
>         at
>         - locked <0x000000008012f748> (a$3)
>         - locked <0x000000008012f738> (a java.util.Collections$UnmodifiableSet)
>         - locked <0x0000000080120f58> (a
>         at
>         at
>         at org.apache.thrift.server.TThreadedSelectorServer$
>         at org.apache.thrift.server.TThreadedSelectorServer$

This message was sent by Atlassian JIRA

View raw message