Uploaded image for project: 'Spring Data Neo4j'
  1. Spring Data Neo4j
  2. DATAGRAPH-1322

Tests don't stop the embedded server reliable.

    XMLWordPrintable

    Details

      Description

      Due to the fact that the shutdown hook of the application context is fired only when the JVM ends and not when a test ends, no variant of a disposable bean will be actually disposed (for example through calling `close`).

      This has been the case with the embedded Neo4j server used in the test: They keep running until the VM shuts down and keep a lot of files and sockets open. Due to some timing issues (or benefits, depending on the point of view), that wasn't take note of until recently: On fast machines, the build reliable fails with a too many open files error.

        Attachments

          Activity

            People

            Assignee:
            michael.simons Michael Simons
            Reporter:
            michael.simons Michael Simons
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: