Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/291.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
Php MongoWriteBatch:execute抛出MongoCorSortimeoutException_Php_Mongodb - Fatal编程技术网

Php MongoWriteBatch:execute抛出MongoCorSortimeoutException

Php MongoWriteBatch:execute抛出MongoCorSortimeoutException,php,mongodb,Php,Mongodb,我正在使用MongoUpdateBatch $batch=new\MongoUpdateBatch($collection,['ordered'=>false,'wtimeout'=>500000]); 偶尔会出现以下错误: 读取0字节后读取超时,等待30.000000秒 跟踪: #8/var/app/current/src/Model/Campaign.php中的MongoCorSortimeoutException:286 #7 MongoWriteBatch:在/var/app/curr

我正在使用
MongoUpdateBatch

$batch=new\MongoUpdateBatch($collection,['ordered'=>false,'wtimeout'=>500000]);
偶尔会出现以下错误:

读取0字节后读取超时,等待30.000000秒
跟踪:
#8/var/app/current/src/Model/Campaign.php中的MongoCorSortimeoutException:286
#7 MongoWriteBatch:在/var/app/current/src/Model/Campaign.php:286中执行
#6 ...
出于什么原因可以
MongoWriteBatch:execute()
抛出
mongoCorSortimeoutException
,如何避免