Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MongoDB中的未知对象_Mongodb_Apache Camel - Fatal编程技术网

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/

我正在使用ApacheCamel将对象索引到MongoDb中。现在这一切正常,但问题是,当我使用
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配置的相关错误记录系统)。