Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-2239

Table rename cross database should update Full snapshot correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      This only happens if there are "alter table rename" during taking full snapshot.

      When alter table rename changes DB name of the table, FullUpdateModifier changes all tables' DB name, not just the table whose name is changed. This will change the table names incorrectly.

      For example, when user changes table name from "db1.table1" to table name to "db2.table2" and in db1 there are two other tables: db1.table3, db1.table4, FullUpdateModifier changes the tables from "db1.table1, db1.table3, db1.table4" to "db2.table2, db2.table3, db3.table4".

      The desired behavior is changes the tables from "db1.table1" to "db2.table2". and "db1.table3, db1.table4" remains the same.

      Attachments

        1. SENTRY-2239.001.patch
          19 kB
          Na Li

        Issue Links

          Activity

            People

              Unassigned Unassigned
              linaataustin Na Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: