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)

    Details

    • Type: Technical task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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
      

        Gliffy Diagrams

          Attachments

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                psergey Sergei Petrunia
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 20 minutes
                  20m