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

Fix btree_stat_init failure for tiered storage in test/format.

    • 3
    • StorEng - Defined Pipeline

      When running test/format with tiered storage on (via WT-10630), I see several failures on connection close.  Here's a representative one:

      Core was generated by `./t -h RUNDIR-D tiered_storage.storage_source=dir_store tiered_storage.flush_fr'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  0x00007f53954dffc4 in __wt_btree_stat_init (session=0x7f5395a2c010, cst=0x564614919980) at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/btree/bt_stat.c:33
      33          WT_RET(bm->stat(bm, session, stats[0]));
      [Current thread is 1 (Thread 0x7f5395a53340 (LWP 31242))]
      (gdb) #0  0x00007f53954dffc4 in __wt_btree_stat_init (session=0x7f5395a2c010, cst=0x564614919980) at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/btree/bt_stat.c:33
      #1  0x00007f53955d09d2 in __curstat_file_init (session=0x7f5395a2c010, uri=0x56461486615b "file:T00003-0000000001.wtobj", cfg=0x5646149103f0, cst=0x564614919980)
          at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/cursor/cur_stat.c:418
      #2  0x00007f53955d157d in __wt_curstat_init (session=0x7f5395a2c010, uri=0x564614866150 "statistics:file:T00003-0000000001.wtobj", curjoin=0x0, cfg=0x5646149103f0, 
          cst=0x564614919980) at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/cursor/cur_stat.c:580
      #3  0x00007f53955d1f26 in __wt_curstat_open (session=0x7f5395a2c010, uri=0x564614866150 "statistics:file:T00003-0000000001.wtobj", other=0x0, cfg=0x7ffc0ac94610, 
          cursorp=0x7ffc0ac945b0) at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/cursor/cur_stat.c:737
      #4  0x00007f5395553cc8 in __statlog_dump (session=0x7f5395a2c010, name=0x5646148ae190 "file:T00003-0000000001.wtobj", conn_stats=false)
          at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/conn/conn_stat.c:335
      #5  0x00007f53955542ad in __statlog_apply (session=0x7f5395a2c010, cfg=0x0) at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/conn/conn_stat.c:392
      #6  0x00007f5395546662 in __conn_btree_apply_internal (session=0x7f5395a2c010, dhandle=0x564614911080, file_func=0x7f53955541e9 <__statlog_apply>, name_func=0x0, cfg=0x0)
          at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/conn/conn_dhandle.c:653
      #7  0x00007f539554716a in __wt_conn_btree_apply (session=0x7f5395a2c010, uri=0x0, file_func=0x7f53955541e9 <__statlog_apply>, name_func=0x0, cfg=0x0)
          at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/conn/conn_dhandle.c:721
      #8  0x00007f53955548e6 in __statlog_log_one (session=0x7f5395a2c010, path=0x0, tmp=0x564614865cd0)
          at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/conn/conn_stat.c:501
      #9  0x00007f5395554a9e in __statlog_on_close (session=0x7f5395a2c010) at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/conn/conn_stat.c:538
      #10 0x00007f539555500a in __wt_statlog_destroy (session=0x7f5395a2c010, is_close=true) at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/conn/conn_stat.c:708
      #11 0x00007f539554f5d1 in __wt_connection_close (conn=0x564614801930) at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/conn/conn_open.c:94
      #12 0x00007f5395531199 in __conn_close (wt_conn=0x564614801930, config=0x0) at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/src/conn/conn_api.c:1214
      #13 0x000056461414b016 in wts_create_database () at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/test/format/wts.c:575
      #14 0x000056461414370c in main (argc=8, argv=0x7ffc0ac94e88) at /home/ubuntu/wt/git/wt-10630-format-tiered-storage/test/format/t.c:352 

      This could be related to WT-9785.

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: