[
https://issues.jboss.org/browse/TEIID-3316?page=com.atlassian.jira.plugin...
]
Ramesh Reddy resolved TEIID-3316.
---------------------------------
Labels: Final (was: )
Resolution: Done
Corrected the usage of AggregateOptions object during the execution of aggregate call
between version 2.4 and 2.6.
The current MongoDB defaults to version 2.4 in the Teiid translator, when working with 2.6
or above users need to override translator property to set the correct version of the
mongodb as below in the vdb.xml file
{code}
<translator name="mongo" type="mongodb">
<property name="supportsDirectQueryProcedure"
value="true"/>
<property name="databaseVersion" value="2.6"/>
</translator>
{code}
Will update the default version of the Mongo to 2.8 possibly in Teiid 8.11
MongoDB: Getting "unrecognized field \"cursor" when
connecting to MongoDB 2.4.8 using Teiid 8.9.1
--------------------------------------------------------------------------------------------------
Key: TEIID-3316
URL:
https://issues.jboss.org/browse/TEIID-3316
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.9.1
Environment: Teiid 8.9.1 with MongoDB shell version: 2.4.8 using MongoDB Driver
mongo-java-driver-2.12.3.jar
Reporter: Ivan Chan
Assignee: Ramesh Reddy
Labels: Final
Fix For: 8.10
I am getting the following erroe when connecting to MongoDB using Teiid 8.9.1:
Caused by: com.mongodb.CommandFailureException: { "serverUsed" :
"donetsk:27017" , "ok" : 0.0 , "errmsg" : "unrecognized
field \"cursor"}
at com.mongodb.CommandResult.getException(CommandResult.java:76)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:131)
at com.mongodb.DBCollectionImpl.aggregate(DBCollectionImpl.java:100)
at com.mongodb.DBCollection.aggregate(DBCollection.java:1571)
at
org.teiid.translator.mongodb.MongoDBQueryExecution.execute(MongoDBQueryExecution.java:111)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)