[
https://issues.apache.org/jira/browse/DRILL-5895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16226544#comment-16226544
]
Volodymyr Tkach commented on DRILL-5895:
----------------------------------------
Merged into master with commit id c8d01b3141b0b755d4311340c3e5823214332c70
> Fix unit tests for mongo storage plugin
> ---------------------------------------
>
> Key: DRILL-5895
> URL: https://issues.apache.org/jira/browse/DRILL-5895
> Project: Apache Drill
> Issue Type: Bug
> Components: Storage - MongoDB
> Affects Versions: 1.11.0
> Reporter: Volodymyr Tkach
> Assignee: Volodymyr Tkach
> Labels: ready-to-commit
> Fix For: 1.12.0
>
>
> Mongo tests finish with following exception intermittently. It happens
> because [timeout
> value|https://github.com/flapdoodle-oss/de.flapdoodle.embed.process/blob/1.7/src/main/java/de/flapdoodle/embed/process/runtime/ProcessControl.java#L132]
> from de.flapdoodle.embed.process library is too low for the mongod process
> to be stopped gracefully.
> I have created
> [issue|https://github.com/flapdoodle-oss/de.flapdoodle.embed.process/issues/64]
> to suggest making timeout configurable. For now as temporary solution we
> will log mongod exception instead of throwing it.
> {noformat}
> [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!...
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)