New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Mongo 3.6 #12

Closed
larryxia-ddl opened this Issue Dec 6, 2017 · 9 comments

Comments

Projects
None yet
4 participants
@larryxia-ddl

larryxia-ddl commented Dec 6, 2017

when I try to login the Spline UI, I got the following exception. it seems the generated mongodb query is not well formatted. ( I am used mongodb 3.6)

If you need more information, please let me know.

Regards

Larry

14:27:06.978 [http-bio-8080-exec-8] ERROR za.co.absa.spline.web.logging.ErrorCode$ - ErrorCode(0689c861-2dd9-4196-a2d0-0f499ca74f31)
com.mongodb.MongoCommandException: Command failed with error 9: 'The 'cursor' option is required, except for aggregate with the explain argument' on server 172.
24.136.111:27017. The full response is { "ok" : 0.0, "errmsg" : "The 'cursor' option is required, except for aggregate with the explain argument", "code" : 9, "codeName" : "FailedToParse" }
        at com.mongodb.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:115)
        at com.mongodb.connection.CommandProtocol.execute(CommandProtocol.java:114)
        at com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:159
        at com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:286)
        at com.mongodb.connection.DefaultServerConnection.command(DefaultServerConnection.java:173)
        at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:215)
        at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:206)
        at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:112)
        at com.mongodb.operation.AggregateOperation$1.call(AggregateOperation.java:227)
        at com.mongodb.operation.AggregateOperation$1.call(AggregateOperation.java:223)
        at com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:239)
        at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:212)
        at com.mongodb.operation.AggregateOperation.execute(AggregateOperation.java:223)
        at com.mongodb.operation.AggregateOperation.execute(AggregateOperation.java:65)
        at com.mongodb.Mongo.execute(Mongo.java:772)
        at com.mongodb.Mongo$2.execute(Mongo.java:759)
        at com.mongodb.DBCollection.aggregate(DBCollection.java:1377)
        at com.mongodb.DBCollection.aggregate(DBCollection.java:1308)
        at com.mongodb.DBCollection.aggregate(DBCollection.java:1294)
        at za.co.absa.spline.persistence.mongo.MongoDataLineageReader$$anonfun$za$co$absa$spline$persistence$mongo$MongoDataLineageReader$$selectPersistedDatasets$1.apply(MongoDataLineageReader.scala:187)
        at za.co.absa.spline.persistence.mongo.MongoDataLineageReader$$anonfun$za$co$absa$spline$persistence$mongo$MongoDataLineageReader$$selectPersistedDatasets$1.apply(MongoDataLineageReader.scala:188)
        at scala.concurrent.impl.ExecutionContextImpl$DefaultThreadFactory$$anon$2$$anon$4.block(ExecutionContextImpl.scala:48)
        at scala.concurrent.forkjoin.ForkJoinPool.managedBlock(ForkJoinPool.java:3640)
        at scala.concurrent.impl.ExecutionContextImpl$DefaultThreadFactory$$anon$2.blockOn(ExecutionContextImpl.scala:45)
        at scala.concurrent.package$.blocking(package.scala:123)
        at za.co.absa.spline.persistence.mongo.MongoDataLineageReader.za$co$absa$spline$persistence$mongo$MongoDataLineageReader$$selectPersistedDatasets(MongoDataLineageReader.scala:188)
        at za.co.absa.spline.persistence.mongo.MongoDataLineageReader$$anonfun$list$1.apply(MongoDataLineageReader.scala:170)
        at za.co.absa.spline.persistence.mongo.MongoDataLineageReader$$anonfun$list$1.apply(MongoDataLineageReader.scala:170)
        at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
        at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
        at scala.concurrent.impl.ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:121)
        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

@wajda

This comment has been minimized.

Contributor

wajda commented Dec 6, 2017

Hi Larry. We use Mongo 3.4, so it may be 3.6 related bug.
Let me see if I can reproduce it on 3.6.

@wajda wajda self-assigned this Dec 6, 2017

@wajda wajda added the bug label Dec 6, 2017

@wajda

This comment has been minimized.

Contributor

wajda commented Dec 6, 2017

Yes, upgrading Mongo driver to 3.6 fixes it.

wajda added a commit that referenced this issue Dec 6, 2017

@larryxia-ddl

This comment has been minimized.

larryxia-ddl commented Dec 7, 2017

Thanks, I will try with 3.4.

@wajda wajda changed the title from Get exception when I try to use the GUI. to Support for Mongo 3.6 Dec 8, 2017

@larryxia-ddl

This comment has been minimized.

larryxia-ddl commented Dec 8, 2017

It works fine with Mongodb 3.4.

@wajda wajda added this to the 0.3.next milestone Dec 8, 2017

@prasenjeetp

This comment has been minimized.

prasenjeetp commented Jan 9, 2018

@wajda how do you " upgrading Mongo driver to 3.6 fixes it.". Can you give some steps

@wajda

This comment has been minimized.

Contributor

wajda commented Jan 11, 2018

Just update the dependency version in pom.xml
6c257f3

wajda added a commit that referenced this issue Feb 13, 2018

Merge pull request #86 in BACIBBD/spline from hotfix/issue-14-HDFS to…
… release/0.2

* commit '3268890360f912d7fa020791484201cf547fb6de':
  Issue #14 - HDFS persistance - temporary fix for unsupported operation exception
  #12 Support for MongoDB 3.6

@wajda wajda modified the milestones: 0.3.next, 0.2.next Feb 13, 2018

@wajda wajda closed this Feb 13, 2018

@rpanjabi

This comment has been minimized.

rpanjabi commented Feb 27, 2018

Hi @wajda , I am new to pentaho and could not able to find pom.xml file. Can you please guide me.
Thanks

@wajda

This comment has been minimized.

Contributor

wajda commented Feb 27, 2018

Hi @rpanjabi,
You don't need any pom.xml file any more - the issue is fixed. Please try the latest Spline release 0.2.6

@rpanjabi

This comment has been minimized.

rpanjabi commented Feb 28, 2018

Hi @wajda , I am using enterprise trial edition. What would be the solution with that.

wajda added a commit that referenced this issue Apr 9, 2018

wajda pushed a commit that referenced this issue Apr 9, 2018

Marek Novotny Marek Novotny
Merge pull request #77 in BACIBBD/spline from feature/mongo_3.6_suppo…
…rt to develop

* commit 'fca8f0c16502b397a59a6fbf5fdb2709be619be6':
  SL-92 Persistence API: Add abstraction for closeable iterable result. Refactor other layers to support stream fashion data transfer from DB up to Web Client via REST
  github issue #12 Support for MongoDB 3.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment