Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-28288

System versioning doesn't support correct work for engine=connect and doesn't always give any warnings/errors

Details

    Description

      If add for engine=connect "system versioning" there is no any warnings/errors on creating table and inserting data, but "select" gives an empty result, "update" doesn't change value and "delete" fails with error:

      Test:

      create table t2 (
        x int,
        y int
      ) engine=connect table_type=FIX file_name='test.txt' with system versioning;
       
      insert into t2 values (1,1),(2,2),(3,3),(4,4),(5,5);
      select * from t2;
       
      update t2 set x=10 where y=4;
      select * from t2;
      delete from t2 where x=1;
      select * from t2;
       
      drop table t2;
      

      Result:

      create table t2 (
      x int,
      y int
      ) engine=connect table_type=FIX file_name='/test.txt' with system versioning;
      insert into t2 values (1,1),(2,2),(3,3),(4,4),(5,5);
      select * from t2;
      x	y
      update t2 set x=10 where y=4;
      select * from t2;
      x	y
      delete from t2 where x=1;
       
      mysqltest: At line 11: query 'delete from t2 where x=1' failed: ER_CRASHED_ON_USAGE (1194): Table 't2' is marked as crashed and should be repaired
      

      Attachments

        Issue Links

          Activity

            ralf.gebhardt Ralf Gebhardt added a comment - - edited

            Hi lstartseva,

            this issue does not seem to be related to the new feature in 10.9, so the affectedVersion might need to be changed. Can you check this?

            ralf.gebhardt Ralf Gebhardt added a comment - - edited Hi lstartseva , this issue does not seem to be related to the new feature in 10.9, so the affectedVersion might need to be changed. Can you check this?

            Indeed it isn't. The generic problem was stated in MDEV-15968, but the combination of versioning and Connect hasn't been prohibited.

            elenst Elena Stepanova added a comment - Indeed it isn't. The generic problem was stated in MDEV-15968 , but the combination of versioning and Connect hasn't been prohibited.

            Please review bb-10.5-midenok

            midenok Aleksey Midenkov added a comment - Please review bb-10.5-midenok
            ralf.gebhardt Ralf Gebhardt added a comment -

            The fix is to return "ERROR HY000: System-versioned tables do not support CONNECT storage engine".

            ralf.gebhardt Ralf Gebhardt added a comment - The fix is to return "ERROR HY000: System-versioned tables do not support CONNECT storage engine".

            commit 20ba4c3b is approved

            nikitamalyavin Nikita Malyavin added a comment - commit 20ba4c3b is approved

            People

              midenok Aleksey Midenkov
              lstartseva Lena Startseva
              Votes:
              0 Vote for this issue
              Watchers:
              6 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.