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

LevelDB: SELECT produces different results inside a transaction (read is not repeatable)

    XMLWordPrintable

Details

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

    Description

      Test case:

      --enable_connect_log
       
      create table t1 (pk int primary key, i int) engine=LevelDB;
      begin;
      select * from t1;
      select * from t1 where pk = 1;
       
      --connect (con1,localhost,root,,)
      insert into t1 values (1,100);
       
      --connection default
      select * from t1;
      select * from t1 where pk = 1;
      commit;
       

      Output:

      create table t1 (pk int primary key, i int) engine=LevelDB;
      begin;
      select * from t1;
      pk      i
      select * from t1 where pk = 1;
      pk      i
      connect  con1,localhost,root,,;
      insert into t1 values (1,100);
      connection default;
      select * from t1;
      pk      i
      1       100
      select * from t1 where pk = 1;
      pk      i
      commit;

      With InnoDB the same test case works as expected (all SELECTs return an empty result set).

      revision-id: psergey@askmonty.org-20130114131529-qv3531bw9fdklwob
      revno: 4483
      branch-nick: mysql-5.6-leveldb

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.