Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-98483

Invariant failure, bad value 22, invalid argument

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: WiredTiger
    • None
    • Environment:
      Using the latest mongo:8 docker image.
      Server: 8.0.4
      Docker desktop v4.37.0
      Windows 11 Pro (10.0.22621)
      Disk: NVMe Micron 3400 MTFDKBA2T0TFH (2TB)
    • ALL

      I'm running a migration process which executes lots of transactions. Sometimes mongodb crashes, in the log I can see an "Invariant failure" error with the following attributes:

       

       

      {"expr":"c->get_value(c, &value)","error":"BadValue: 22: Invalid argument","file":"src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp","line":200}} 

       

       

      At the moment of the failure, the command being executed is a "find" (many) in a quite large collection, which was likely updated in the previous transaction.

      There are no simultaneously runnininvariant_failure.logg transactions (I had them, but changed concurrency to see if it helped the problem).

      After the "Invariant failure", there's always a "segmentation fault" followed by a server restart.

      Attached the log from the Invariant Failure to the restart.

        1. invariant_failure.log
          44 kB
          Jaume Lopez

            Assignee:
            Unassigned Unassigned
            Reporter:
            glueball@gmail.com Jaume Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: