You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@plc4x.apache.org by "Jens Vagts (Jira)" <ji...@apache.org> on 2020/02/04 11:02:00 UTC

[jira] [Created] (PLC4X-172) ADS driver does not shutdown all threads (hangs) after closing connection

Jens Vagts created PLC4X-172:
--------------------------------

             Summary: ADS driver does not shutdown all threads (hangs) after closing connection
                 Key: PLC4X-172
                 URL: https://issues.apache.org/jira/browse/PLC4X-172
             Project: Apache PLC4X
          Issue Type: Bug
          Components: Driver-ADS
    Affects Versions: 0.7.0
            Reporter: Jens Vagts
         Attachments: Plc4xAdsTestInitial.java, image-2020-02-04-11-58-40-364.png

I'm starting to use the ADS protocol support of the PLC4X project. I succeeded to read out single values but always struggle with a hanging application process due to remaning threads of {{nioEventLoopGroup}} and {{pool-1}}.

Attached are the simple java test method and the trace log.

I build the library version 0.7-SN from source.

After 30 seconds warnings get logged regarding timeouts but the thread keep running:
{noformat}
11:52:03.492 [pool-1-thread-1] WARN  o.a.p.j.b.p.SingleItemToSingleRequestProtocol - container PlcRequestContainer{request=org.apache.plc4x.java.base.messages.DefaultPlcProprietaryRequest@c1b47e3} timed out:HashedWheelTimer$HashedWheelTimeout(deadline: 101966500 ns ago, task: org.apache.plc4x.java.base.protocol.SingleItemToSingleRequestProtocol$$Lambda$99/0x0000000800237440@353dfda9)
11:52:08.791 [pool-1-thread-1] WARN  o.a.p.j.b.p.SingleItemToSingleRequestProtocol - container PlcRequestContainer{request=org.apache.plc4x.java.base.messages.DefaultPlcProprietaryRequest@3220d517} timed out:HashedWheelTimer$HashedWheelTimeout(deadline: 9469900 ns ago, task: org.apache.plc4x.java.base.protocol.SingleItemToSingleRequestProtocol$$Lambda$99/0x0000000800237440@3fc596d9)
 {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)