Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-5157

Fix atomics usage in spinlock implementation

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1, WT10.0.0, 4.2.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • 8
    • Storage Engines 2019-11-04

      The Jenkins job wiredtiger-test-spinlock has not passed since the end of July. Currently Jenkins is timing out and aborting the job (i.e. it appears as a black ball instead of a red failure). Using the executable from the failed tarball, the hang reproduces.
      http://build.wiredtiger.com:8080/job/wiredtiger-test-spinlock/4984/

      Here's the Jenkins output:

      Build timed out (after 862 minutes). Marking the build as aborted.
      Terminated
      FAIL: run-ex_access
      

      Here's the stack. We hang trying to close the connection:

      Thread 1 (Thread 0x7f384020b440 (LWP 32464)):
      #0  __wt_spin_lock (session=0x7f38401e6a90, t=0x129c0e0) at ../src/include/mutex.i:86
      #1  0x00007f383fd3b7e4 in __wt_reconcile (session=0x7f38401e6a90, ref=0x1295bf0, salvage=0x0, flags=1, 
          lookaside_retryp=0x0) at ../src/reconcile/rec_write.c:87
      #2  0x00007f383fc4c11a in __wt_sync_file (session=0x7f38401e6a90, syncop=WT_SYNC_CHECKPOINT)
          at ../src/btree/bt_sync.c:313
      #3  0x00007f383fd85115 in __checkpoint_tree (session=0x7f38401e6a90, is_checkpoint=true, cfg=0x7ffe27a2e210)
          at ../src/txn/txn_ckpt.c:1590
      #4  0x00007f383fd8552e in __wt_checkpoint (session=0x7f38401e6a90, cfg=0x7ffe27a2e210) at ../src/txn/txn_ckpt.c:1752
      #5  0x00007f383fd83857 in __txn_checkpoint (session=0x7f38401e6a90, cfg=0x7ffe27a2e210) at ../src/txn/txn_ckpt.c:928
      #6  0x00007f383fd83f39 in __txn_checkpoint_wrapper (session=0x7f38401e6a90, cfg=0x7ffe27a2e210)
          at ../src/txn/txn_ckpt.c:1061
      #7  0x00007f383fd840b5 in __wt_txn_checkpoint (session=0x7f38401e6a90, cfg=0x7ffe27a2e210, waiting=true)
          at ../src/txn/txn_ckpt.c:1120
      #8  0x00007f383fd7f18f in __wt_txn_global_shutdown (session=0x7f38401e2010, config=0x0, cfg=0x7ffe27a2e2b0)
          at ../src/txn/txn.c:1545
      #9  0x00007f383fc772e0 in __conn_close (wt_conn=0x125c280, config=0x0) at ../src/conn/conn_api.c:1093
      #10 0x0000000000401209 in access_example () at ../../../examples/c/ex_access.c:78
      #11 0x000000000040126b in main (argc=1, argv=0x7ffe27a2e4e8) at ../../../examples/c/ex_access.c:87
      

            Assignee:
            alex.cameron@mongodb.com Alex Cameron (Inactive)
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: