Skip to content
This repository was archived by the owner on Mar 13, 2019. It is now read-only.
This repository was archived by the owner on Mar 13, 2019. It is now read-only.

Potential concurrency problem in AsyncChannelAsserts #327

@joshua-g

Description

@joshua-g

There's a potential concurrency problem with the throwables arrays in methods waitForReply and listenTo: these arrays seem to be accessed from more than one thread without synchronization.

It might be better for the Fibers in these methods to be created, started, and disposed externally; then test fibers can be reused, and exceptions can be collected by a JUnitRuleFiberExceptions instance. I also think that, in general, it's a better Fiber usage pattern if a Fiber passed into a constructor is disposed by the caller, though arguably in this case it doesn't matter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions