Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6805

All the 4 tests by MongoDbIndexTest are failing

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.12.1
    • Fix Version/s: 2.12.2, 2.13.0
    • Component/s: camel-mongodb
    • Labels:
      None
    • Environment:

      Tested using MongoDB 2.4.6 for Mac OS X being provided here.

    • Estimated Complexity:
      Unknown

      Description

      Following one example when running testInsertDynamicityEnabledDBAndCollectionAndIndex:

      Running org.apache.camel.component.mongodb.MongoDbIndexTest
      Tests run: 8, Failures: 0, Errors: 8, Skipped: 0, Time elapsed: 1.226 sec <<< FAILURE! - in org.apache.camel.component.mongodb.MongoDbIndexTest
      testInsertDynamicityEnabledDBAndCollectionAndIndex(org.apache.camel.component.mongodb.MongoDbIndexTest)  Time elapsed: 0.76 sec  <<< ERROR!
      org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: Endpoint[mongodb://myDb?collection=camelTest&collectionIndex=%7B%22a%22%3A%221%22%7D&database=test&dynamicity=true&operation=insert&writeConcern=SAFE]. Reason: org.apache.camel.component.mongodb.CamelMongoDbException: Error creating index
      	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:409)
      	at org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:123)
      	at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:191)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:54)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:77)
      	at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1154)
      	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:41)
      	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:28)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:54)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:77)
      	at org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:155)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:54)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:77)
      	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)
      	at org.apache.camel.impl.RouteService.startChildService(RouteService.java:329)
      	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:158)
      	at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:2109)
      	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2039)
      	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2061)
      	at org.apache.camel.impl.DefaultCamelContext.startRouteService(DefaultCamelContext.java:1938)
      	at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:772)
      	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1914)
      	at org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:707)
      	at org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:337)
      	at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:264)
      	at org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:669)
      	at org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:302)
      	at org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:217)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      Caused by: org.apache.camel.component.mongodb.CamelMongoDbException: Error creating index
      	at org.apache.camel.component.mongodb.MongoDbEndpoint.initializeConnection(MongoDbEndpoint.java:188)
      	at org.apache.camel.component.mongodb.MongoDbEndpoint.createProducer(MongoDbEndpoint.java:101)
      	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:405)
      	at org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:123)
      	at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:191)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:54)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:77)
      	at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1154)
      	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:41)
      	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:28)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:54)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:77)
      	at org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:155)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:54)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:77)
      	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)
      	at org.apache.camel.impl.RouteService.startChildService(RouteService.java:329)
      	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:158)
      	at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:2109)
      	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2039)
      	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2061)
      	at org.apache.camel.impl.DefaultCamelContext.startRouteService(DefaultCamelContext.java:1938)
      	at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:772)
      	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1914)
      	at org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:707)
      	at org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:337)
      	at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:264)
      	at org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:669)
      	at org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:302)
      	at org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:217)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      Caused by: com.mongodb.WriteConcernException: { "serverUsed" : "localhost/127.0.0.1:27017" , "err" : "Unknown index plugin '1' in index { a: \"1\" }" , "code" : 16734 , "n" : 0 , "connectionId" : 98 , "ok" : 1.0}
      	at com.mongodb.CommandResult.getException(CommandResult.java:77)
      	at com.mongodb.CommandResult.throwOnError(CommandResult.java:110)
      	at com.mongodb.DBTCPConnector._checkWriteError(DBTCPConnector.java:102)
      	at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:142)
      	at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:115)
      	at com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:248)
      	at com.mongodb.DBApiLayer$MyCollection.createIndex(DBApiLayer.java:340)
      	at com.mongodb.DBCollection.createIndex(DBCollection.java:485)
      	at com.mongodb.DBCollection.ensureIndex(DBCollection.java:561)
      	at com.mongodb.DBCollection.ensureIndex(DBCollection.java:512)
      	at org.apache.camel.component.mongodb.MongoDbEndpoint.ensureIndex(MongoDbEndpoint.java:202)
      	at org.apache.camel.component.mongodb.MongoDbEndpoint.initializeConnection(MongoDbEndpoint.java:185)
      	at org.apache.camel.component.mongodb.MongoDbEndpoint.createProducer(MongoDbEndpoint.java:101)
      	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:405)
      	at org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:123)
      	at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:191)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:54)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:77)
      	at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1154)
      	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:41)
      	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:28)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:54)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:77)
      	at org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:155)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:54)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:77)
      	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)
      	at org.apache.camel.impl.RouteService.startChildService(RouteService.java:329)
      	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:158)
      	at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:2109)
      	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2039)
      	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2061)
      	at org.apache.camel.impl.DefaultCamelContext.startRouteService(DefaultCamelContext.java:1938)
      	at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:772)
      	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1914)
      	at org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:707)
      	at org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:337)
      	at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:264)
      	at org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:669)
      	at org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:302)
      	at org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:217)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      

        Attachments

          Activity

            People

            • Assignee:
              bvahdat Babak Vahdat
              Reporter:
              bvahdat Babak Vahdat
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: