Skip to content
English
  • There are no suggestions because the search field is empty.

MongoDB collection metadata

Original Question or Issue:

We have noticed that the parallel queue is stuck at "22,351" records. It constantly goes up and down but not once has it dipped below 22,351 records.


Environment:

  • Product - FileCloud Server
  • Version - 23.251
  • Platform - Linux

Steps to Reproduce:

Multiple hard crash of MongoDB due to out of memory issue.


Error or Log Message:

tonidoclouddb> db.background_queue_parallel.count();

22351


Defect or Enhancement Number:

 


Cause:

MongoDB metadata issue.

Deprecated count command.


Resolution or Workaround:

Please note that the count command is deprecated and shouldn't be used anymore.

The countDocuments should be used instead and it's returning the correct count.

Use validate(true) MongDB command to correct the MongoDB metadata of a collection.


Notes: