You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (JIRA)" <ji...@apache.org> on 2019/06/13 01:31:00 UTC

[jira] [Updated] (CXF-8054) [Client] Asynchronous support completes the response before calling the interceptors

     [ https://issues.apache.org/jira/browse/CXF-8054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andriy Redko updated CXF-8054:
------------------------------
    Description: 
The response completion is tied to the moment the stream is closed, after that the interceptors chain is resumed. Which essentially is the cause why some tests may fail from time to time:

1) Response is completed, the callback is triggered (worker thread), completing the CompletableFuture
 2) The interceptor chain is still ongoing (worker thread)
 3) The test unblocks (main thread) and proceed with assertions
 4) Here we come with the timing issue

It is potentially an issue and at best, we could consult Jakarta TCK with respect to expectations in this case.

Link to the mail thread: http://mail-archives.apache.org/mod_mbox/cxf-dev/201906.mbox/%3CCACLE%3D7MOa6zg5P7hq6cXk6XZnp6iHhdiT8uJusH2grXAVDDiqg%40mail.gmail.com%3E

  was:
The response completion is tied to the moment the stream is closed, after that the interceptors chain is resumed. Which essentially is the cause why some tests may fail from time to time:

1) Response is completed, the callback is triggered (worker thread), completing the CompletableFuture
2) The interceptor chain is still ongoing (worker thread)
3) The test unblocks (main thread) and proceed with assertions
4) Here we come with the timing issue

It is potentially an issue and at best, we could consult Jakarta TCK with respect to expectations in this case.


> [Client] Asynchronous support completes the response before calling the interceptors
> ------------------------------------------------------------------------------------
>
>                 Key: CXF-8054
>                 URL: https://issues.apache.org/jira/browse/CXF-8054
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Andriy Redko
>            Assignee: Andriy Redko
>            Priority: Major
>
> The response completion is tied to the moment the stream is closed, after that the interceptors chain is resumed. Which essentially is the cause why some tests may fail from time to time:
> 1) Response is completed, the callback is triggered (worker thread), completing the CompletableFuture
>  2) The interceptor chain is still ongoing (worker thread)
>  3) The test unblocks (main thread) and proceed with assertions
>  4) Here we come with the timing issue
> It is potentially an issue and at best, we could consult Jakarta TCK with respect to expectations in this case.
> Link to the mail thread: http://mail-archives.apache.org/mod_mbox/cxf-dev/201906.mbox/%3CCACLE%3D7MOa6zg5P7hq6cXk6XZnp6iHhdiT8uJusH2grXAVDDiqg%40mail.gmail.com%3E



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