Andriy Redko created CXF-8054: --------------------------------- Summary: [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
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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)