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

Avoid lookaside reads for dead trees

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc0, WT3.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage 2017-10-23

      If a tree has lookaside entries, then is force-dropped, we should discard the lookaside entries rather than reading them back in when the tree is discarded from cache.

      From https://logkeeper.mongodb.org/build/9bd49e00fdfba889022f9bc11e370d01/test/59dac414c2ab680a1800c62d:

      [MasterSlaveFixture:job5:master] 2017-10-09T00:34:28.322+0000 E STORAGE  [thread16] WiredTiger error (0) [1507509268:322819][9477:0x7f3f51878700], file:collection-17-5562131037258864417.wt, sweep-server: __wt_page_only_modify_set, 505: !F_ISSET(session->dhandle, WT_DHANDLE_DEAD)
      [MasterSlaveFixture:job5:master] 2017-10-09T00:34:28.323+0000 E STORAGE  [thread16] WiredTiger error (0) [1507509268:323305][9477:0x7f3f51878700], file:collection-17-5562131037258864417.wt, sweep-server: aborting WiredTiger library
      [CheckReplDBHash:job5:sortb:CheckReplDBHash] 2017-10-09T00:34:28.331+0000 Starting Hook sortb:CheckReplDBHash...
      ./mongo --eval MongoRunner.dataDir = "/data/db/job5/mongorunner"; TestData = new Object(); TestData.wiredTigerEngineConfigString = ""; TestData.maxPort = 21499; TestData.storageEngineCacheSizeGB = "1"; TestData.wiredTigerIndexConfigString = ""; TestData.noJournal = false; TestData.isMainTest = true; TestData.testName = "run_check_repl_dbhash"; TestData.serviceExecutor = ""; TestData.storageEngine = "wiredTiger"; TestData.minPort = 21260; TestData.transportLayer = ""; TestData.noJournalPrealloc = true; TestData.numTestClients = 1; TestData.wiredTigerCollectionConfigString = ""; MongoRunner.dataPath = "/data/db/job5/mongorunner/"; load('jstests/libs/override_methods/validate_collections_on_shutdown.js');; load('jstests/libs/override_methods/check_uuids_consistent_across_cluster.js'); mongodb://localhost:21250 jstests/hooks/run_check_repl_dbhash.js
      [MasterSlaveFixture:job5:master] 2017-10-09T00:34:28.337+0000 F -        [thread16] Got signal: 6 (Aborted).
      [MasterSlaveFixture:job5:master] 
      [MasterSlaveFixture:job5:master]  0x7f3f5f3aec61 0x7f3f5f3ade79 0x7f3f5f3ae35d 0x7f3f5c5b47e0 0x7f3f5c243495 0x7f3f5c244c75 0x7f3f5dd472a7 0x7f3f5db2b670 0x7f3f5dd038bd 0x7f3f5db2c05f 0x7f3f5dcdd4a2 0x7f3f5dcf9487 0x7f3f5dd2bce0 0x7f3f5dcefd1b 0x7f3f5dc5f914 0x7f3f5dc64363 0x7f3f5c5acaa1 0x7f3f5c2f9bcd
      [MasterSlaveFixture:job5:master] ----- BEGIN BACKTRACE -----
      [CheckReplDBHash:job5:sortb:CheckReplDBHash] 2017-10-09T00:34:28.402+0000 MongoDB shell version v3.5.13-325-g155db509a8-patch-59dab69ee3c331107a002f45
      [CheckReplDBHash:job5:sortb:CheckReplDBHash] 2017-10-09T00:34:28.407+0000 Hook sortb:CheckReplDBHash started with pid 10624.
      [MasterSlaveFixture:job5:master] {"backtrace":[{"b":"7F3F5D28B000","o":"2123C61","s":"_ZN5mongo15printStackTraceERSo"},{"b":"7F3F5D28B000","o":"2122E79"},{"b":"7F3F5D28B000","o":"212335D"},{"b":"7F3F5C5A5000","o":"F7E0"},{"b":"7F3F5C211000","o":"32495","s":"gsignal"},{"b":"7F3F5C211000","o":"33C75","s":"abort"},{"b":"7F3F5D28B000","o":"ABC2A7"},{"b":"7F3F5D28B000","o":"8A0670","s":"__wt_panic"},{"b":"7F3F5D28B000","o":"A788BD","s":"__wt_row_modify"},{"b":"7F3F5D28B000","o":"8A105F"},{"b":"7F3F5D28B000","o":"A524A2","s":"__wt_page_in_func"},{"b":"7F3F5D28B000","o":"A6E487"},{"b":"7F3F5D28B000","o":"AA0CE0","s":"__wt_evict_file"},{"b":"7F3F5D28B000","o":"A64D1B","s":"__wt_cache_op"},{"b":"7F3F5D28B000","o":"9D4914","s":"__wt_conn_dhandle_close"},{"b":"7F3F5D28B000","o":"9D9363"},{"b":"7F3F5C5A5000","o":"7AA1"},{"b":"7F3F5C211000","o":"E8BCD","s":"clone"}],"processInfo":{ "mongodbVersion" : "3.5.13-325-g155db509a8-patch-59dab69ee3c331107a002f45", "gitVersion" : "155db509a8e376211095cec062f7aa5be1b7707e", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "2.6.32-220.el6.x86_64", "version" : "#1 SMP Wed Nov 9 08:03:13 EST 2011", "machine" : "x86_64" }, "somap" : [ { "b" : "7F3F5D28B000", "elfType" : 3, "buildId" : "9E4408C83A9DAFDBC2DC130A784634B3D488FF17" }, { "b" : "7FFFEF437000", "elfType" : 3, "buildId" : "08F634A1D22DEFF00461D50A7699DACDC97657BF" }, { "b" : "7F0040E60000", "path" : "/lib64/librt.so.1", "elfType" : 3, "buildId" : "FDF3A36FFFE08375456D59DA959EAB2FC30B6186" }, { "b" : "7F0041C5C000", "path" : "/lib64/libdl.so.2", "elfType" : 3, "buildId" : "1F7E85410384392BC51FA7324961719A10125F31" }, { "b" : "7F00405D8000", "path" : "/lib64/libm.so.6", "elfType" : 3, "buildId" : "8A852AC42F0B64F0F30C760EBBCFA3FE4A228F12" }, { "b" : "7F003F7C2000", "path" : "/lib64/libgcc_s.so.1", "elfType" : 3, "buildId" : "BC7550A8A7C2D706FE4E489058BADC963465DBB7" }, { "b" : "7F0040DA5000", "path" : "/lib64/libpthread.so.0", "elfType" : 3, "buildId" : "85104ECFE42C606B31C2D0D0D2E5DACD3286A341" }, { "b" : "7F0040E11000", "path" : "/lib64/libc.so.6", "elfType" : 3, "buildId" : "8A7E7404A2335231BE759CB54F8041344CAC0C1B" }, { "b" : "7F0042468000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "1CC2165E019D43F71FDE0A47AF9F4C8EB5E51963" } ] }}
      [MasterSlaveFixture:job5:master]  mongod(_ZN5mongo15printStackTraceERSo+0x41) [0x7f3f5f3aec61]
      [MasterSlaveFixture:job5:master]  mongod(+0x2122E79) [0x7f3f5f3ade79]
      [MasterSlaveFixture:job5:master]  mongod(+0x212335D) [0x7f3f5f3ae35d]
      [MasterSlaveFixture:job5:master]  libpthread.so.0(+0xF7E0) [0x7f3f5c5b47e0]
      [MasterSlaveFixture:job5:master]  libc.so.6(gsignal+0x35) [0x7f3f5c243495]
      [MasterSlaveFixture:job5:master]  libc.so.6(abort+0x175) [0x7f3f5c244c75]
      [MasterSlaveFixture:job5:master]  mongod(+0xABC2A7) [0x7f3f5dd472a7]
      [MasterSlaveFixture:job5:master]  mongod(__wt_panic+0x0) [0x7f3f5db2b670]
      [CheckReplDBHash:job5:sortb:CheckReplDBHash] 2017-10-09T00:34:28.469+0000 connecting to: mongodb://localhost:21250
      [MasterSlaveFixture:job5:master]  mongod(__wt_row_modify+0x150D) [0x7f3f5dd038bd]
      [MasterSlaveFixture:job5:master]  mongod(+0x8A105F) [0x7f3f5db2c05f]
      [MasterSlaveFixture:job5:master]  mongod(__wt_page_in_func+0x1D82) [0x7f3f5dcdd4a2]
      [MasterSlaveFixture:job5:master]  mongod(+0xA6E487) [0x7f3f5dcf9487]
      [MasterSlaveFixture:job5:master]  mongod(__wt_evict_file+0x1A0) [0x7f3f5dd2bce0]
      [MasterSlaveFixture:job5:master]  mongod(__wt_cache_op+0xFB) [0x7f3f5dcefd1b]
      [MasterSlaveFixture:job5:master]  mongod(__wt_conn_dhandle_close+0x264) [0x7f3f5dc5f914]
      

            Assignee:
            michael.cahill@mongodb.com Michael Cahill (Inactive)
            Reporter:
            michael.cahill@mongodb.com Michael Cahill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: