List:Commits« Previous MessageNext Message »
From:Ritheesh Vedire Date:November 9 2009 10:14am
Subject:Re: bzr commit into mysql-6.0-backup branch (ritheesh.vedire:2888)
Bug#45587
View as plain text  
Rafal Somla wrote:
> Hi Ritheesh,
>
> STATUS
> ------
> Approved.
>
> SUGGESTIONS
> -----------
> 1. Remove backup_no_engine test and make it part of backup_errors one.
 I think a separate test case is useful because we might want to make 
changes to the code to issue 'WARNINGS' instead of 'ERRORS'.
 It's just that a separate test case will make easy to add anything in 
the future.
So, I'm going with the separate test.
> 2. Simplify error suppression pattern.
Done.
> 3. Do SHOW WARNINGS after failed BACKUP.
Done.
>
> DETAILS
> -------
> Ritheesh Vedire wrote:
>> #At file:///home/rith/Work/MySQl/bug45587/ based on 
>> revid:charles.bell@stripped
>>
>>  2888 Ritheesh Vedire    2009-11-06
>>       BUG#45587: Backup of tables using a non-existent storage engine 
>> does not give warning/error
>>      @ mysql-test/suite/backup/r/backup_no_engine.result
>>         T
>>      @ mysql-test/suite/backup/t/backup_no_engine.test
>>         Test case suppresses errors in the Server Log file.
>>
>>     modified:
>>       mysql-test/suite/backup/r/backup_no_engine.result
>>       mysql-test/suite/backup/t/backup_no_engine.test
>>       sql/si_objects.cc
> ...
>> === modified file 'mysql-test/suite/backup/t/backup_no_engine.test'
>> --- a/mysql-test/suite/backup/t/backup_no_engine.test    2009-06-18 
>> 11:28:01 +0000
>> +++ b/mysql-test/suite/backup/t/backup_no_engine.test    2009-11-06 
>> 12:10:31 +0000
>
> [1] Since this test becomes very short now, I suggest making it part 
> of backup_erros test.
>
>> @@ -3,6 +3,10 @@
>>  
>>  --source include/not_embedded.inc
>>  
>> +--echo Suppress this error in the server log
>> +call mtr.add_suppression("Can't access storage engine of table 
>> `.*`.`.*`");
>
> [2] I suggest simpler suppression pattern "Can't access storage engine 
> of table" (if it works).
>
>> +--echo
>> +
>>  # .frm file for a table using non-existent storage engine
>>  --let $table_def=$MYSQL_TEST_DIR/std_data/bug30938.frm
>>  
>> @@ -20,21 +24,11 @@ copy_file $table_def $MYSQLD_DATADIR/db/
>>  
>>  SHOW TABLES IN db;
>>  
>> -# backup test database, the table with no storage engine will be 
>> ignored
>> +# backup test database, an error will be displayed
>> +# as storage engine of the table is not identified
>>  --replace_column 1 #
>> +--error ER_UNKNOWN_STORAGE_ENGINE
>>  BACKUP DATABASE db TO "db.backup";
>>
>
> [3] I suggest to do SHOW WARNINGS after failed BACKUP to see what 
> errors were pushed on error stack.
>
> Rafal
Ritheesh.
Thread
bzr commit into mysql-6.0-backup branch (ritheesh.vedire:2888)Bug#45587Ritheesh Vedire6 Nov
  • Re: bzr commit into mysql-6.0-backup branch (ritheesh.vedire:2888)Bug#45587Rafal Somla6 Nov
    • Re: bzr commit into mysql-6.0-backup branch (ritheesh.vedire:2888)Bug#45587Ritheesh Vedire9 Nov
  • Re: bzr commit into mysql-6.0-backup branch (ritheesh.vedire:2888)Bug#45587Charles Bell6 Nov