Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3841 LevelDB storage engine
  3. MDEV-3958

Assertion `kdef' fails in Primary_key_comparator::Compare on inserting data into a table previously altered and converted into LevelDB

    XMLWordPrintable

Details

    • Technical task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      CREATE TABLE t1 (a INT(11), b CHAR(8)) ENGINE=MyISAM;
      ALTER TABLE t1 ADD PRIMARY KEY (a);
      ALTER TABLE t1 ENGINE=LevelDB;
      INSERT INTO t1 VALUES (1,'a'),(2,'b');

      #9  0xb738f167 in __assert_fail () from /lib/libc.so.6
      #10 0x0891d799 in Primary_key_comparator::Compare (this=0x90951b0 <primary_key_comparator>, a=..., b=...) at mysql-5.6-leveldb/storage/leveldb/ha_leveldb.cc:148
      #11 0xb769cd88 in leveldb::InternalKeyComparator::Compare(leveldb::Slice const&, leveldb::Slice const&) const () from leveldb-1.7.0/libleveldb.so.1
      #12 0xb76ab7fc in leveldb::MemTable::KeyComparator::operator()(char const*, char const*) const () from leveldb-1.7.0/libleveldb.so.1
      #13 0xb76abf55 in leveldb::SkipList<char const*, leveldb::MemTable::KeyComparator>::FindGreaterOrEqual(char const* const&, leveldb::SkipList<char const*, leveldb::MemTable::KeyComparator>::Node**) const () from leveldb-1.7.0/libleveldb.so.1
      #14 0xb76ac083 in leveldb::SkipList<char const*, leveldb::MemTable::KeyComparator>::Insert(char const* const&) () from leveldb-1.7.0/libleveldb.so.1
      #15 0xb76ab9d9 in leveldb::MemTable::Add(unsigned long long, leveldb::ValueType, leveldb::Slice const&, leveldb::Slice const&) () from leveldb-1.7.0/libleveldb.so.1
      #16 0xb76bb8cb in leveldb::(anonymous namespace)::MemTableInserter::Put(leveldb::Slice const&, leveldb::Slice const&) () from leveldb-1.7.0/libleveldb.so.1
      #17 0xb76bbca8 in leveldb::WriteBatch::Iterate(leveldb::WriteBatch::Handler*) const () from leveldb-1.7.0/libleveldb.so.1
      #18 0xb76bbf84 in leveldb::WriteBatchInternal::InsertInto(leveldb::WriteBatch const*, leveldb::MemTable*) () from leveldb-1.7.0/libleveldb.so.1

      revision-id: psergey@askmonty.org-20121221152341-9stvnkuiinslrt9h
      date: 2012-12-21 19:23:41 +0400
      build-date: 2012-12-22 02:09:59 +0400
      revno: 4471
      branch: mysql-5.6-leveldb

      LevelDB version 1.7.0.

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.