Skip to content

Evaluate the AsyncIOTest test #24

@jamezp

Description

@jamezp

The Netty org.jboss.resteasy.test.AsyncIOTest is very flaky. There is an issue with determining if something is running on the IO thread or not. This is determined with the test writer:

String resp = t.expectOnIoThread == Context.isOnEventLoopThread() ? "OK" : "KO";

It looks like the expectation for the test is that it it's not supposed to be on the IO thread, a io.vertx.core.Context.isOnEventLoopThread() thread, then it's expected to be on the thread used in a CompletableFuture.supplyAsync(). This does not always seem to be true for some reason. Whether there is a real race condition on when the current thread would be changed or there is an issue with the test alone is undetermined.

I did however, remove all other invocations of endpoint checks from the test and left one which fails every time. This could be an indicator on the test just being bad. This needs to be looked at closer though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions