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

Bug in fsync2.js causes RHEL 64bit Nightly to never finish

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • ALL

      I believe there is a bug in jstests/fsync2.js such that the test hangs and blocks future builds from being scheduled. I believe the problematic code is:

      assert.commandWorked( d.runCommand( {fsync:1, lock: 1 } ) );
      
      for ( i=0; i<200; i++) {
          assert.eq(1, db.fsync2.count());
          sleep(1);
      }
      
      db.fsync2.save( {x:1} );
      

      As I understand it, once a database is fsync/locked and a write comes in (the save on the last line), all reads and writes are blocked until the fsync/lock is un-done. Since the Mongo shell does safe-mode writes by default, control will never return to the jstest after the .save() line (it will block indefinitely, or at least seems to be doing so).

      Possibly related cases:

        1. mongod.log.server-5028
          1.20 MB
          Daniel Crosta

            Assignee:
            Unassigned Unassigned
            Reporter:
            dcrosta Daniel Crosta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: