Github user gparai commented on a diff in the pull request: https://github.com/apache/drill/pull/741#discussion_r99470421 --- Diff: contrib/storage-mongo/src/test/java/org/apache/drill/exec/store/mongo/TestTableGenerator.java --- @@ -58,7 +59,12 @@ public static void generateTable(String dbName, String collection, .jsonArray(jsonArray).importFile(jsonFile).build(); MongoImportExecutable importExecutable = MongoImportStarter .getDefaultInstance().prepare(mongoImportConfig); - importExecutable.start(); + MongoImportProcess importProcess = importExecutable.start(); + + while (importProcess.isProcessRunning()) { --- End diff -- Please add a comment explaining the change - Import process is running in a different thread/process and we do not to start running any test prior to import complete?
--- 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. ---