codeconsole opened a new pull request, #16190:
URL: https://github.com/apache/grails-core/pull/16190

   Every run that starts a real mongod ends with this on a shutdown thread, 
against a build whose
   tests all passed:
   
   ```
   Exception in thread "Thread-77" de.flapdoodle.reverse.TearDownException: 
tearDown errors
        at 
de.flapdoodle.reverse.TransitionWalker.tearDown(TransitionWalker.java:298)
        at 
org.grails.datastore.gorm.mongodb.embedded.FlapdoodleMongoBackend$RunningMongod.stop
        Caused by: java.nio.file.NoSuchFileException: 
/tmp/temp--.../workingDir.../mongod.pid
   ```
   
   The server is stopped twice. `EmbeddedMongoLifecycle` stops it when the 
application context closes,
   and the JVM shutdown hook - which is there for a context that never closes - 
stops it again when the
   process exits. Flapdoodle removes the process directory as it tears the 
server down, so the second
   teardown fails on the files the first one deleted.
   
   Stopping is idempotent now, and so is starting a server that is already 
running. The in-memory
   backend already tolerated both; a spec covers each.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to