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

mysqltest regex replace results in incorrect result

    XMLWordPrintable

Details

    Description

      From https://travis-ci.org/MariaDB/server/jobs/238967452

      As seen with the : plugins.server_audit and plugins.thread_pool_server_audit tests

      Setting a large hostname like travis (testing-docker-99f46c25-f6c4-4465-bc49-ee78d188e37c) is sufficient to trigger test. A smaller test hostname of
      testing-docker-99f46c25 passes.

      The regexs are right using [^,]* as the host match which should match the hostname. Though it escapes for ',' I don't think escaping is needed (and it doesn't affect result removing escapes).

      related to c91ecf9e9bebf3cf2dafbd3193de4df94be09870 ?

      Testable locally by changing hostname to a name above with hostname command.

      ];mtr: spent 0:01:23 on 237 tests. 0:02:04 (356 tests) leftplugins.server_audit                     w4 [ fail ]
       
              Test ended at 2017-06-03 01:45:44
       
      CURRENT_TEST: plugins.server_audit
       
      --- /home/travis/build/MariaDB/server/mysql-test/suite/plugins/r/server_audit.result	2017-06-03 01:12:33.602546287 +0000
       
      +++ /home/travis/build/MariaDB/server/mysql-test/suite/plugins/r/server_audit.reject	2017-06-03 01:45:43.814546287 +0000
       
      @@ -368,7 +368,7 @@
       
       TIME,HOSTNAME,root,localhost,ID,ID,QUERY,sa_db,'set global server_audit_file_path=\'  \'',0
       
       TIME,HOSTNAME,root,localhost,ID,ID,QUERY,sa_db,'show status like \'server_audit_current_log\'',0
       
       TIME,HOSTNAME,root,localhost,ID,ID,QUERY,sa_db,'set global server_audit_file_path=\'nonexisting_dir/\'',0
       
      -TIME,HOSTNAME,root,localhost,ID,ID,QUERY,sa_db,'set global server_audit_file_path=\'nonexisting_dir/\'',0
       
      +20170603 01:45:43,testing-docker-de343aff-a28e-4fe6-a1e4-4b97f4f3d0c3,root,localhost,ID,ID,QUERY,sa_db,'set global server_audit_file_path=\'nonexisting_dir/\'',0
       
       TIME,HOSTNAME,root,localhost,ID,ID,QUERY,sa_db,'SHOW WARNINGS',0
       
       TIME,HOSTNAME,root,localhost,ID,ID,QUERY,sa_db,'show status like \'server_audit_current_log\'',0
       
       TIME,HOSTNAME,root,localhost,ID,ID,QUERY,sa_db,'show variables like \'server_audit%\'',0
       
      mysqltest: Result length mismatch
       
       - saving '/home/travis/build/MariaDB/server/mysql-test/var/4/log/plugins.server_audit/' to '/home/travis/build/MariaDB/server/mysql-test/var/log/plugins.server_audit/'
       
      ];mtr: spent 0:01:24 on 239 tests. 0:02:04 (354 tests) leftplugins.thread_pool_server_audit         w2 [ fail ]
       
              Test ended at 2017-06-03 01:45:44
       
      CURRENT_TEST: plugins.thread_pool_server_audit
       
      --- /home/travis/build/MariaDB/server/mysql-test/suite/plugins/r/thread_pool_server_audit.result	2017-06-03 01:12:33.602546287 +0000
       
      +++ /home/travis/build/MariaDB/server/mysql-test/suite/plugins/r/thread_pool_server_audit.reject	2017-06-03 01:45:43.754546287 +0000
      

      Attachments

        Activity

          People

            serg Sergei Golubchik
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.