Assertion error, code 8

476 views
Skip to first unread message

Raul Cicuendez

unread,
May 10, 2016, 8:31:32 AM5/10/16
to mongodb-user
Hi, i need some help.
When i try to save a document to a collection, this error throws from an exception in c#.

{"WriteConcern detected an error 'assertion C:\data\mci\src\src\mongo/util/concurrency/rwlock.h:170'. (Response was { "ok" : 1, "code" : 8, "err" : "assertion :\\data\\mci\\src\\src\\mongo/util/concurrency/rwlock.h:170", "n" : NumberLong(0),  "updatedExisting" : false })."}

I think must to the document size, when i try to save a smaller document it saved correctly.

Thanks, best regards.

Raul Cicuendez

unread,
May 13, 2016, 5:08:42 AM5/13/16
to mongodb-user
Hi, more info about the question

* I'm running the mongodb server on windows 64bits
* The data folder only contains one database which has 3,45GB of disk space

* The log when mongodb starts:

2016-05-12T17:10:29.705+0200 W STORAGE  [initandlisten] database E:\XTRAE\MongoDB\data\db xtrae15 could not be opened due to DBException 0: assertion C:\data\mci\src\src\mongo/util/concurrency/rwlock.h:170
2016-05-12T17:10:29.706+0200 I STORAGE  [initandlisten] exception in initAndListen: 0 assertion C:\data\mci\src\src\mongo/util/concurrency/rwlock.h:170, terminating
2016-05-12T17:10:29.706+0200 I CONTROL  [serviceStopWorker] now exiting
2016-05-12T17:10:29.706+0200 I NETWORK  [serviceStopWorker] shutdown: going to close listening sockets...
2016-05-12T17:10:29.706+0200 I NETWORK  [serviceStopWorker] shutdown: going to flush diaglog...
2016-05-12T17:10:29.706+0200 I NETWORK  [serviceStopWorker] shutdown: going to close sockets...
2016-05-12T17:10:29.706+0200 I STORAGE  [serviceStopWorker] shutdown: waiting for fs preallocator...
2016-05-12T17:10:29.706+0200 I STORAGE  [serviceStopWorker] shutdown: closing all files...
2016-05-12T17:10:29.708+0200 I STORAGE  [serviceStopWorker] closeAllFiles() finished
2016-05-12T17:10:29.708+0200 I STORAGE  [serviceStopWorker] shutdown: removing fs lock...
2016-05-12T17:10:29.708+0200 I CONTROL  [serviceStopWorker] dbexit:  rc: 49

Thanks, regards!

Wan Bachtiar

unread,
May 26, 2016, 9:23:45 PM5/26/16
to mongodb-user

I think must to the document size, when i try to save a smaller document it saved correctly.

Hi Raul,

Note that the maximum BSON document size is 16MB, see also document limitations. If some your documents reached the size limit, you need to re-consider your data models.

2016-05-12T17:10:29.705+0200 W STORAGE [initandlisten] database E:\XTRAE\MongoDB\data\db xtrae15 could not be opened due to DBException 0: assertion C:\data\mci\src\src\mongo/util/concurrency/rwlock.h:170

Did the deployment experience an unclean shutdown previously ? i.e. hardware failure, power loss, etc?

When i try to save a document to a collection, this error throws from an exception in c#.

Could you provide the following information:

  • MongoDB server version.
  • Specific Windows OS version.
  • MongoDB deployment topology. i.e. standalone, replica-set or sharded cluster.
  • MongoDB C# driver version
  • Code for the insert/save that triggers the exception.

Regards,

Wan.

Raul Cicuendez

unread,
May 29, 2016, 7:01:56 AM5/29/16
to mongodb-user
Hi Wan
  • MongoDB server version.=db version v3.0.5
  • Specific Windows OS version.=Windows 8 Pro
  • MongoDB deployment topology. i.e. standalone, replica-set or sharded cluster.=StandAlone
  • MongoDB C# driver version=C# Driver 1.10.0.277
  • Database 10 files and 3'45GBytes is the total size
The application is a web crawler that stores HTML  always with sizes less than 16Mb, i'm sure because if the document is more than 16Mb is not stored and is discarted by the app. I had in mind

I'm going to the new version of both, the last version 3.2.6 of server, and 2.2.4 of C# driver.  The last the storage engine is WiredTiger and i think will resolve the problem.

i'm going to test with this scenario.

Thanks!!
Reply all
Reply to author
Forward
0 new messages