Open idelpivnitskiy opened 4 years ago
https://github.com/apple/servicetalk/actions/runs/3341170597/jobs/5532204378
AsynchronousResourceTest.BLOCKING_STREAMING server-no-offloads = false
java.lang.AssertionError:
Expected: is <200 OK>
but: was <204 No Content>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
at io.servicetalk.http.router.jersey.AbstractJerseyStreamingHttpServiceTest.sendAndAssertStatus(AbstractJerseyStreamingHttpServiceTest.java:372)
at io.servicetalk.http.router.jersey.AbstractJerseyStreamingHttpServiceTest.sendAndAssertResponse(AbstractJerseyStreamingHttpServiceTest.java:330)
at io.servicetalk.http.router.jersey.AbstractJerseyStreamingHttpServiceTest.sendAndAssertResponse(AbstractJerseyStreamingHttpServiceTest.java:316)
at io.servicetalk.http.router.jersey.AbstractJerseyStreamingHttpServiceTest.sendAndAssertResponse(AbstractJerseyStreamingHttpServiceTest.java:295)
at io.servicetalk.http.router.jersey.AbstractJerseyStreamingHttpServiceTest.sendAndAssertResponse(AbstractJerseyStreamingHttpServiceTest.java:276)
at io.servicetalk.http.router.jersey.AbstractJerseyStreamingHttpServiceTest.sendAndAssertNoResponse(AbstractJerseyStreamingHttpServiceTest.java:262)
at io.servicetalk.http.router.jersey.AsynchronousResourceTest.lambda$getVoidCompletion$20(AsynchronousResourceTest.java:331)
at io.servicetalk.http.router.jersey.AbstractJerseyStreamingHttpServiceTest.runTwiceToEnsureEndpointCache(AbstractJerseyStreamingHttpServiceTest.java:391)
at io.servicetalk.http.router.jersey.AsynchronousResourceTest.getVoidCompletion(AsynchronousResourceTest.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
Jersey inconsistently returns 200 or 204 when an endpoint returns
CompletionStage
. The status code depends on the state ofCompletionStage
. If it is already compete before JAX-RS method returns, then Jersey returns 204. If not, Jersey returns 200.