You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Aleksandr Zaigraev (JIRA)" <ji...@apache.org> on 2019/03/06 06:47:02 UTC

[jira] [Comment Edited] (OLINGO-1343) Deadlocking in PipedInputStream

    [ https://issues.apache.org/jira/browse/OLINGO-1343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16784283#comment-16784283 ] 

Aleksandr Zaigraev edited comment on OLINGO-1343 at 3/6/19 6:46 AM:
--------------------------------------------------------------------

Proposed patch attached.

Solution is based on [https://bugs.openjdk.java.net/browse/JDK-4404700]

 Update: patch reloaded.


was (Author: dw3105):
Proposed patch attached.

Solution is based on [https://bugs.openjdk.java.net/browse/JDK-4404700]

 

> Deadlocking in PipedInputStream
> -------------------------------
>
>                 Key: OLINGO-1343
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1343
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-client
>    Affects Versions: (Java) V4 4.5.0, (Java) V4 4.6.0
>            Reporter: Aleksandr Zaigraev
>            Priority: Blocker
>              Labels: patch
>             Fix For: (Java) V4 4.5.0, (Java) V4 4.6.0
>
>         Attachments: OLINGO-1343.patch, deadlock_1.txt
>
>
> Deadlocking in PipedInputStream often happens on communication errors (e.g. proxy timeouts) when using Olingo with Spring Batch:
> "spring_batch13" #46 prio=5 os_prio=0 tid=0x00000000250e0800 nid=0xf50 in Object.wait() [0x000000002d42e000]
>  java.lang.Thread.State: TIMED_WAITING (on object monitor)
>  at java.lang.Object.wait(Native Method)
>  at java.io.PipedInputStream.awaitSpace(PipedInputStream.java:273)
>  at java.io.PipedInputStream.receive(PipedInputStream.java:231)
>  - locked <0x000000075f4ccfd8> (a java.io.PipedInputStream)
>  at java.io.PipedOutputStream.write(PipedOutputStream.java:149)
>  at java.io.OutputStream.write(OutputStream.java:75)
>  at org.apache.olingo.client.core.communication.request.batch.ODataBatchRequestImpl.rawAppend(ODataBatchRequestImpl.java:57)
>  at org.apache.olingo.client.core.communication.request.AbstractODataBasicRequest.batch(AbstractODataBasicRequest.java:107)
>  at org.apache.olingo.client.core.communication.request.batch.ODataChangesetImpl.addRequest(ODataChangesetImpl.java:125)
>  
> Full thread dump in attached file.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)