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

Fix crash in __wt_rec_row_leaf on Windows during import

      This ticket is to fix the crash reported in BF-25015.
      Some highlights from that ticket:  failed: noPassthrough on enterprise-windows-all-feature-flags-required [mongodb-mongo-master @ 12bbc9f4] (export_import_concurrency.js)

       

      WiredTiger error message
      int __cdecl __wt_rec_row_leaf(struct __wt_session_impl *,struct __wt_reconcile *,struct __wt_ref *,struct __wt_salvage_cookie *):861:encountered an illegal file format or internal value: 0x74
       
      Traceback:

      |.../src/third_party/wiredtiger/src/support/err.c@559: __wt_panic_func|
      |.../src/third_party/wiredtiger/src/reconcile/rec_row.c@861: __wt_rec_row_leaf|
      |.../src/third_party/wiredtiger/src/reconcile/rec_write.c@255: __reconcile|
      |.../src/third_party/wiredtiger/src/reconcile/rec_write.c@97: __wt_reconcile|
      |.../src/third_party/wiredtiger/src/btree/bt_sync.c@612: __wt_sync_file|
      |.../src/third_party/wiredtiger/src/txn/txn_ckpt.c@1918: __checkpoint_tree|
      |.../src/third_party/wiredtiger/src/txn/txn_ckpt.c@2031: __checkpoint_tree_helper|
      |.../src/third_party/wiredtiger/src/txn/txn_ckpt.c@200: __checkpoint_apply_to_dhandles|
      |.../src/third_party/wiredtiger/src/txn/txn_ckpt.c@949: __txn_checkpoint|
      |.../src/third_party/wiredtiger/src/txn/txn_ckpt.c@1196: __txn_checkpoint_wrapper|
      |.../src/third_party/wiredtiger/src/txn/txn_ckpt.c@1261: __wt_txn_checkpoint|
      |.../src/third_party/wiredtiger/src/session/session_api.c@767: __session_alter|
      |.../src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp@1837: mongo::WiredTigerKVEngine::alterMetadata|
      |.../src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp@1021: mongo::WiredTigerUtil::_setTableLogging|
      |.../src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp@886: mongo::WiredTigerUtil::setTableLogging|
      |.../src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp@932: mongo::WiredTigerRecordStore::WiredTigerRecordStore|
      |.../src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp@2486: mongo::StandardWiredTigerRecordStore::StandardWiredTigerRecordStore|
      |.../src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp@1624: mongo::WiredTigerKVEngine::getRecordStore|
      |.../src/mongo/db/storage/durable_catalog_impl.cpp@755: mongo::DurableCatalogImpl::importCollection|
      |.../src/mongo/db/modules/enterprise/src/live_import/import_collection.cpp@260: <lambda_a16507ac8b7f5cf1b5a0581170e25c97>::operator()|
      |.../src/mongo/db/concurrency/write_conflict_exception.h@113: mongo::writeConflictRetry<<lambda_a16507ac8b7f5cf1b5a0581170e25c97> >|
      |.../src/mongo/db/modules/enterprise/src/live_import/import_collection.cpp@332: mongo::importCollection|
      |.../src/mongo/db/modules/enterprise/src/live_import/import_collection.cpp@359: mongo::runImportCollectionCommand|
      

      rec_row.c:861 is this code:

                  switch (upd->type) {
      ....            default:
                      WT_ERR(__wt_illegal_value(session, upd->type)); 

      The upd->type is 0x74.

      FWIW, in the mongodb stack, we are in the middle of importing a collection.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: