Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/741#discussion_r99451363 --- Diff: contrib/storage-mongo/src/test/java/org/apache/drill/exec/store/mongo/MongoTestSuit.java --- @@ -204,16 +209,20 @@ private static void cleanup() { @BeforeClass public static void initMongo() throws Exception { synchronized (MongoTestSuit.class) { - if (distMode) { - logger.info("Executing tests in distributed mode"); - DistributedMode.setup(); - } else { - logger.info("Executing tests in single mode"); - SingleMode.setup(); + if (initCount.get() == 0) { --- End diff -- non-synchronized and if (initCount.getAndIncrement() == 0) ?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---