MongoDB中的未知对象
我正在使用ApacheCamel将对象索引到MongoDb中。现在这一切正常,但问题是,当我使用MongoDB中的未知对象,mongodb,apache-camel,Mongodb,Apache Camel,我正在使用ApacheCamel将对象索引到MongoDb中。现在这一切正常,但问题是,当我使用db.published.find().pretty()查询我的MongoDb时,我发现一些意外的对象如下所示: { "_id" : ObjectId("51a8822231da90cab7d75553"), "error" : null, "lazy" : true, "lastError" : { "serverUsed" : "localhost/
db.published.find().pretty()
查询我的MongoDb时,我发现一些意外的对象如下所示:
{
"_id" : ObjectId("51a8822231da90cab7d75553"),
"error" : null,
"lazy" : true,
"lastError" : {
"serverUsed" : "localhost/127.0.0.1:27017",
"n" : 0,
"lastOp" : NumberLong("5884095995700051970"),
"connectionId" : 6,
"err" : null,
"ok" : 1
},
"n" : 0,
"cachedLastError" : {
"serverUsed" : "localhost/127.0.0.1:27017",
"n" : 0,
"lastOp" : NumberLong("5884095995700051970"),
"connectionId" : 6,
"err" : null,
"ok" : 1
},
"lastConcern" : null
}
这些物体是什么?它们是否应该在我的收藏中?如果是,原因是什么?是否有记录/错误记录系统?(MongoDB不会像那样向您的集合中添加文档,所以它一定是其他软件组件)。我查一下。但你绝对肯定不是db本身吗?我同意@wiredparie的说法,它绝对不是MongoDB插入这些文档。可能是camel组件:很可能是camel MongoDB组件(或以某种方式使用db配置的相关错误记录系统)。