Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5895

Fix unit tests for mongo storage plugin

    XMLWordPrintableJSON

Details

    Description

      Mongo tests finish with following exception intermittently. It happens because timeout value from de.flapdoodle.embed.process library is too low for the mongod process to be stopped gracefully.

      I have created issue to suggest making timeout configurable. For now as temporary solution we will log mongod exception instead of throwing it.

      [mongod output] Exception in thread "Thread-25" java.lang.IllegalStateException: Couldn't kill mongod process!
      
      ----------------------------------------------------
      Something bad happend. We couldn't kill mongod process, and tried a lot.
      If you want this problem solved you can help us if you open a new issue.
      
      Follow this link:
      https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/issues
      
      Thank you:)
      ----------------------------------------------------
      
      
      	at de.flapdoodle.embed.process.runtime.ProcessControl.waitForProcessGotKilled(ProcessControl.java:192)
      	at de.flapdoodle.embed.process.runtime.ProcessControl.stop(ProcessControl.java:76)
      	at de.flapdoodle.embed.process.runtime.AbstractProcess.stopProcess(AbstractProcess.java:189)
      	at de.flapdoodle.embed.mongo.AbstractMongoProcess.stopInternal(AbstractMongoProcess.java:117)
      	at de.flapdoodle.embed.process.runtime.AbstractProcess.stop(AbstractProcess.java:170)
      	at de.flapdoodle.embed.process.runtime.Executable.stop(Executable.java:73)
      	at de.flapdoodle.embed.process.runtime.Executable$JobKiller.run(Executable.java:90)
      	at java.lang.Thread.run(Thread.java:745)
      Exception in thread "Thread-13" java.lang.IllegalStateException: Couldn't kill mongod process!
      
      ----------------------------------------------------
      Something bad happend. We couldn't kill mongod process, and tried a lot.
      If you want this problem solved you can help us if you open a new issue.
      
      Follow this link:
      https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/issues
      
      Thank you:)
      ----------------------------------------------------
      
      
      	at de.flapdoodle.embed.process.runtime.ProcessControl.waitForProcessGotKilled(ProcessControl.java:192)
      	at de.flapdoodle.embed.process.runtime.ProcessControl.stop(ProcessControl.java:76)
      	at de.flapdoodle.embed.process.runtime.AbstractProcess.stopProcess(AbstractProcess.java:189)
      	at de.flapdoodle.embed.mongo.AbstractMongoProcess.stopInternal(AbstractMongoProcess.java:117)
      	at de.flapdoodle.embed.process.runtime.AbstractProcess.stop(AbstractProcess.java:170)
      	at de.flapdoodle.embed.process.runtime.Executable.stop(Executable.java:73)
      	at de.flapdoodle.embed.process.runtime.Executable$JobKiller.run(Executable.java:90)
      	at java.lang.Thread.run(Thread.java:745)
      
      Results :
      
      Tests in error: 
        MongoTestSuit.tearDownCluster:260 ยป IllegalState Couldn't kill mongod process!...
      
      

      Attachments

        Issue Links

          Activity

            People

              volodymyr.tkach Volodymyr Tkach
              volodymyr.tkach Volodymyr Tkach
              Arina Ielchiieva Arina Ielchiieva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: