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

Skip value return for largest key

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • None
    • WT10.0.1, 5.2.0, 5.0.5, 5.1.2
    • None
    • None
    • 5
    • Storage - Ra 2021-10-18, Storage - Ra 2021-11-01
    • v5.1

    Description

      I'm hitting the following assertion in a test suite after a RTS call:

              /*
               * Callers of this function set the cursor slot to an impossible value to check we don't try
               * and return on-page values when the update list should have been sufficient (which
               * happens, for example, if an update list was truncated, deleting the standard update
               * required by a previous modify update). Assert the case.
               */
              WT_ASSERT(session, cbt->slot != UINT32_MAX);
      

       

      The suite is performing replication rollback in MongoDB. The assertion is happening on the _mdb_catalog table:

      [j0:n1] | 2021-10-15T21:33:14.935+00:00 E  STORAGE  22435   [ReplWriterWorker-0] "WiredTiger error","attr":{"error":0,"message":"[1634333594:935351][30708:0x7eff32697700], file:_mdb_catalog.wt, WT_CURSOR.prev: __wt_modify_reconstruct_from_upd_list, 484: cbt->slot != UINT32_MAX"}
      [j0:n1] | 2021-10-15T21:33:14.935+00:00 E  STORAGE  22435   [ReplWriterWorker-0] "WiredTiger error","attr":{"error":0,"message":"[1634333594:935410][30708:0x7eff32697700], file:_mdb_catalog.wt, WT_CURSOR.prev: __wt_abort, 28: aborting WiredTiger library"}
      [j0:n1] | 2021-10-15T21:33:15.095+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF675B8B3E","b":"7EFF673BA000","o":"1FEB3E","s":"_ZN5mongo18stack_trace_detail12_GLOBAL__N_119printStackTraceImplERKNS1_7OptionsEPNS_14StackTraceSinkE.constprop.358","s+":"20E"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF675BB4E9","b":"7EFF673BA000","o":"2014E9","s":"_ZN5mongo15printStackTraceEv","s+":"29"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF675B3DFF","b":"7EFF673BA000","o":"1F9DFF","s":"abruptQuit","s+":"6F"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF65664D80","b":"7EFF65652000","o":"12D80","s":"funlockfile","s+":"50"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF652C593F","b":"7EFF6528E000","o":"3793F","s":"gsignal","s+":"10F"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF652AFC95","b":"7EFF6528E000","o":"21C95","s":"abort","s+":"127"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF5B070C43","b":"7EFF5B01F000","o":"51C43","s":"__wt_abort","s+":"23"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF5B07C556","b":"7EFF5B01F000","o":"5D556","s":"__wt_modify_reconstruct_from_upd_list.cold.3","s+":"81"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF5B0A2007","b":"7EFF5B01F000","o":"83007","s":"__wt_btcur_prev_prefix","s+":"2487"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF5B15447A","b":"7EFF5B01F000","o":"13547A","s":"__curfile_prev","s+":"2FA"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF5B186404","b":"7EFF5B01F000","o":"167404","s":"__wt_cursor_largest_key","s+":"3E4"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF5E6AB7A8","b":"7EFF5E60D000","o":"9E7A8","s":"_ZN5mongo21WiredTigerRecordStore19_initNextIdIfNeededEPNS_16OperationContextE","s+":"158"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF5E6AB8F3","b":"7EFF5E60D000","o":"9E8F3","s":"_ZN5mongo21WiredTigerRecordStore7_nextIdEPNS_16OperationContextE","s+":"33"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF5E6ABFF6","b":"7EFF5E60D000","o":"9EFF6","s":"_ZN5mongo21WiredTigerRecordStore14_insertRecordsEPNS_16OperationContextEPNS_6RecordEPKNS_9TimestampEm","s+":"6A6"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF5E6AC642","b":"7EFF5E60D000","o":"9F642","s":"_ZN5mongo21WiredTigerRecordStore13insertRecordsEPNS_16OperationContextEPSt6vectorINS_6RecordESaIS4_EERKS3_INS_9TimestampESaIS8_EE","s+":"42"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF5E4EE5BE","b":"7EFF5E4D1000","o":"1D5BE","s":"_ZN5mongo11RecordStore12insertRecordEPNS_16OperationContextEPKciNS_9TimestampE","s+":"1CE"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF5E4EA169","b":"7EFF5E4D1000","o":"19169","s":"_ZN5mongo18DurableCatalogImpl9_addEntryEPNS_16OperationContextENS_15NamespaceStringERKNS_17CollectionOptionsE","s+":"3C9"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF5E4EA968","b":"7EFF5E4D1000","o":"19968","s":"_ZN5mongo18DurableCatalogImpl16createCollectionEPNS_16OperationContextERKNS_15NamespaceStringERKNS_17CollectionOptionsEb","s+":"178"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF600BB209","b":"7EFF6003C000","o":"7F209","s":"_ZNK5mongo12DatabaseImpl16createCollectionEPNS_16OperationContextERKNS_15NamespaceStringERKNS_17CollectionOptionsEbRKNS_7BSONObjE","s+":"4C9"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF600BCB08","b":"7EFF6003C000","o":"80B08","s":"_ZNK5mongo12DatabaseImpl12userCreateNSEPNS_16OperationContextERKNS_15NamespaceStringENS_17CollectionOptionsEbRKNS_7BSONObjE","s+":"A18"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF639171CC","b":"7EFF638D5000","o":"421CC","s":"_ZZN5mongo12_GLOBAL__N_117_createCollectionEPNS_16OperationContextERKNS_15NamespaceStringEONS_17CollectionOptionsEN5boost8optionalINS_7BSONObjEEEENKUlvE_clEv","s+":"ABC"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF639176E1","b":"7EFF638D5000","o":"426E1","s":"_ZN5mongo12_GLOBAL__N_117_createCollectionEPNS_16OperationContextERKNS_15NamespaceStringEONS_17CollectionOptionsEN5boost8optionalINS_7BSONObjEEE","s+":"101"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF63917D5E","b":"7EFF638D5000","o":"42D5E","s":"_ZN5mongo12_GLOBAL__N_116createCollectionEPNS_16OperationContextERKNS_15NamespaceStringEONS_17CollectionOptionsEN5boost8optionalINS_7BSONObjEEE","s+":"21E"}}
      [j0:n1] | 2021-10-15T21:33:15.096+00:00 I  CONTROL  31445   [ReplWriterWorker-0] "Frame","attr":{"frame":{"a":"7EFF63918698","b":"7EFF638D5000","o":"43698","s":"_ZN5mongo12_GLOBAL__N_116createCollectionEPNS_16OperationContextERKNS_15NamespaceStringERKNS_7BSONObjEN5boost8optionalIS6_EENS_17CollectionOptions9ParseKindE","s+":"748"}}
      

      Attachments

        Issue Links

          Activity

            People

              chenhao.qu@mongodb.com Chenhao Qu
              louis.williams@mongodb.com Louis Williams
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: