Skip to content

Parallel test threads sometimes hang and prevent JVM from exiting #3

Description

@amoe

Hi there,

I have some code that uses parallel-test for integration testing with a database and web server, where tests are siloed from each other using different DBs and different ports.

Sometimes the test runner will hang. Some threads are being left around by the runner. I haven't found what triggers this. It seems that all of the test cases have concluded, but the runner doesn't realize.

I attached a stack dump from jstack below. I have no idea if this is a bug in parallel-test or in my code, it's almost certainly in my code, directly or indirectly, but unfortunately I don't have a minimal test case yet. I'll try to produce one in the coming days, but it may not be possible.

https://gist.github.com/amoe/d5a0aa56985994333432f8f3e4a4c5da

I don't know why there are so many async-dispatch-* threads, when only 4 maximum are used by my configuration for :parallel. Maybe that's something to do with it, but my other tests often allow the JVM to terminate even when having thread numbers like async-dispatch-13.

I just saw the pull request #2, but I'm not savvy enough to tell if that applies to this problem or not.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions