[ 
https://issues.apache.org/jira/browse/DRILL-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852500#comment-15852500
 ] 

ASF GitHub Bot commented on DRILL-5196:
---------------------------------------

Github user chunhui-shi commented on a diff in the pull request:

    https://github.com/apache/drill/pull/741#discussion_r99455997
  
    --- 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 --
    
    Then it will increase the count when the init is not done. If init fail in 
the middle, then another test has no chance to try.


> Could not run a single MongoDB unit test case through command line or IDE
> -------------------------------------------------------------------------
>
>                 Key: DRILL-5196
>                 URL: https://issues.apache.org/jira/browse/DRILL-5196
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Chunhui Shi
>            Assignee: Chunhui Shi
>
> Could not run a single MongoDB's unit test through IDE or command line. The 
> reason is when running a single test case, the MongoDB instance did not get 
> started thus a 'table not found' error for 'mongo.employee.empinfo' would be 
> raised.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to