Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-1573

recommended change to the rsync.sh script

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Do
    • 1.1.5
    • N/A
    • ?
    • None

    Description

      Input from a community user about improvement in the rsync.sh script, which will equalize the front-end um from um1 (pm1) to the other nodes when mysql-replication is enabled

      I notice that when we call mcsadmin enableMySQLReplication one of the steps is the call to the script /usr/local/mariadb/columnstore/bin/rsync.sh

      If I understand well this is used to create the "zero point" each time, before activate the standard mysql replication.

      What I'm not understanding is why this script not use the delete option of the rsync.

      Here the problem:
      1) I disable the MySQL replication with mcsadmin disableMySQLReplication
      2) On the Primary Front-End MariaDB ColumnStore Module (pm1 /um1) I call a simple DROP TABLE or a DROP DATABASE
      3) I enable the MySQL replication with mcsadmin enableMySQLReplication

      In this case what I'm expecting is that also on the other UM (or pm if combinated) the table or the database that i drop were removed.
      Instead all the ibd and frm files remain in place.

      Other thing I not understand is why we exclude "test/" (test database), is useful for some reason? (according to https://github.com/mariadb-corporation/mariadb-columnstore-server/blob/master/scripts/mysql_secure_installation.sh I've removed it from PM1)
      I have also not idea if it's better to rsync also the mysql database or not.

      I suggest you to upgrade the rsync.sh script with the "--delete" option, the "-axvz" options instead of "-vopgr" and removing the --exclude=mysql/ and --exclude=test/ clause, somethings like:

      set COMMAND "rsync -axvz --delete -e ssh --exclude=infinidb_vtable/ --exclude=infinidb_querystats/ --exclude=calpontsys/ --include=/ --include=/* --exclude=* $INSTALLDIR/mysql/db/ $USERNAME@$SERVER:$INSTALLDIR/mysql/db/"

      Attachments

        Issue Links

          Activity

            hill David Hill (Inactive) created issue -
            nico.aymet Nico made changes -
            Field Original Value New Value
            nico.aymet Nico made changes -
            nico.aymet Nico made changes -
            Attachment rsync.sh [ 47163 ]
            nico.aymet Nico made changes -
            Attachment rsync.sh [ 47163 ]
            nico.aymet Nico made changes -
            Attachment rsync.sh [ 47164 ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Assignee Todd Stoffel [ toddstoffel ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Fix Version/s N/A [ 22302 ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked lower
            toddstoffel Todd Stoffel (Inactive) made changes -
            Fix Version/s 1.7 [ 23713 ]
            Fix Version/s N/A [ 22302 ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Fix Version/s 1.5 [ 22800 ]
            Fix Version/s 1.7 [ 23713 ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Epic Link MCOL-3521 [ 79331 ]
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked higher
            toddstoffel Todd Stoffel (Inactive) made changes -
            Rank Ranked lower
            toddstoffel Todd Stoffel (Inactive) made changes -
            Team ColumnStore Team
            toddstoffel Todd Stoffel (Inactive) made changes -
            Fix Version/s N/A [ 24311 ]
            Fix Version/s 1.5 [ 22800 ]
            Resolution Won't Do [ 10201 ]
            Status Open [ 1 ] Closed [ 6 ]
            leonid.fedorov Leonid Fedorov made changes -
            Component/s ? [ 14509 ]
            Component/s oam [ 13505 ]

            People

              toddstoffel Todd Stoffel (Inactive)
              hill David Hill (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 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.