使用Meteor中的“filter-collection”对字段进行排序时的MongoError

时间:2015-03-29 17:31:55

标签: meteor

我正在使用filter-collections by workpop @DoctorPangloss,使用配置的默认排序可以使表格正常。然后我尝试实现sortable table headers,但是在单击表标题时出现以下错误。

I20150329-10:08:13.439(-7)? Got exception while polling query: MongoError: QueryFailure flag set on getmore command
I20150329-10:08:14.004(-7)? Got exception while polling query: MongoError: QueryFailure flag set on getmore command
I20150329-10:08:14.555(-7)? Got exception while polling query: MongoError: QueryFailure flag set on getmore command
I20150329-10:08:15.130(-7)? Got exception while polling query: MongoError: QueryFailure flag set on getmore command
I20150329-10:08:15.706(-7)? Got exception while polling query: MongoError: QueryFailure flag set on getmore command
I20150329-10:08:16.304(-7)? Got exception while polling query: MongoError: QueryFailure flag set on getmore command
I20150329-10:08:16.877(-7)? Got exception while polling query: MongoError: QueryFailure flag set on getmore command
I20150329-10:08:17.430(-7)? Got exception while polling query: MongoError: QueryFailure flag set on getmore command
I20150329-10:08:18.007(-7)? Got exception while polling query: MongoError: QueryFailure flag set on getmore command
^Cfish: Job 1, 'meteor' terminated by signal SIGINT (Quit request from job control (^C))

<th>的模板已正确呈现为<th class="fc-sort" data-fc-sort="date"> date </th>

我正在处理的系列并不大,只有3000个条目。要排序的字段在mongodb中编入索引。

不确定是否是因包冲突导致的。我在Meteor中使用的当前包:

accounts-password                    1.1.0  Password support for accounts
doctorpangloss:filter-collections    0.2.6  Filter, paging and sort for Meteor collections with hooks and Iron Router support.
fezvrasta:bootstrap-material-design  0.3.0  FezVrasta's Bootstrap theme implementing Google's Material (Paper) Design
insecure                             1.0.3  Allow all database writes by default
iron:router                          1.0.7  Routing specifically designed for Meteor
less                                 1.0.13  The dynamic stylesheet language
meteor-platform                      1.2.2  Include a standard set of Meteor packages in your app
meteorhacks:aggregate                1.2.1  Proper MongoDB aggregations support for Meteor
npvn:accounts-ui-bootstrap-3         1.1.13  accounts-ui re-styled to play well with Material Design.
tmeasday:publish-counts              0.3.4  Publish the count of a cursor, in real time
u2622:persistent-session             0.3.1  Persistently store Session data on the client

1 个答案:

答案 0 :(得分:0)

我能够通过删除位于项目内mongod.lock文件夹中的文件.meteor/local/db来解决此问题。