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

Use custom collator for diagnostic verification of keys

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • WT3.0.0
    • 3.6.3, 3.7.2, WT3.1.0
    • None
    • Storage 2018-01-29

    Description

      Hi!

      When using WT3.0 our application crashes due to failed assertion in __txn_op_log_row_key_check() function when debug-enabled build of WiredTiger is used (built with --enable-diagnostic).
      We use tables with custom collator and one of the keys has padding byte which can have random value since it's ignored by collator.

      I will attach small reproducer:

      $ ./random_key
      [1516727132:293604][31814:0x7f157d93a740], file:main.wt, WT_CURSOR.remove: __txn_op_log_row_key_check, 54: key.size == cursor->key.size && memcmp(key.data, cursor->key.data, key.size) == 0
      [1516727132:293654][31814:0x7f157d93a740], file:main.wt, WT_CURSOR.remove: aborting WiredTiger library
      Aborted (core dumped)
      

      Attachments

        Activity

          People

            donald.anderson@mongodb.com Donald Anderson
            Dmitri Shubin Dmitri Shubin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: