[MDEV-16310] rocksdb.check_ignore_unknown_options fails on OS X Created: 2018-05-28  Updated: 2019-07-19  Resolved: 2018-07-06

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - RocksDB, Tests
Affects Version/s: 10.2, 10.3
Fix Version/s: 10.2.16

Type: Bug Priority: Major
Reporter: Sergei Petrunia Assignee: Sergei Petrunia
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-20107 rocksdb.check_ignore_unknown_options ... Closed

 Description   

rocksdb.check_ignore_unknown_options fails on OS X like so:
http://buildbot.askmonty.org/buildbot/builders/mac-1012-bintar/builds/3565/steps/test/logs/stdio

rocksdb.check_ignore_unknown_options     [ fail ]
        Test ended at 2018-05-25 03:04:41
 
CURRENT_TEST: rocksdb.check_ignore_unknown_options
sh -c echo hello=world>>/Users/buildbot/maria-slave/mac-1012-bintar/build/mysql-test/var/mysqld.1/data//#rocksdb/OPTIONS-000010
 
2018-05-25  3:04:40 0 [Note] /Users/buildbot/maria-slave/mac-1012-bintar/build/sql/mysqld (mysqld 10.3.8-MariaDB-log) starting as process 18864 ...
2018-05-25  3:04:40 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 4182)
2018-05-25  3:04:40 0 [Warning] Setting lower_case_table_names=2 because file system for /Users/buildbot/maria-slave/mac-1012-bintar/build/mysql-test/var/mysqld.1/data/ is case insensitive
sh -c sed -i '/hello=world/d' /Users/buildbot/maria-slave/mac-1012-bintar/build/mysql-test/var/mysqld.1/data//#rocksdb/OPTIONS-000021
 
sed: 1: "/Users/buildbot/maria-s ...": undefined label 'uildbot/maria-slave/mac-1012-bintar/build/mysql-test/var/mysqld.1/data//#rocksdb/OPTIONS-000021'
mysqltest: At line 25: exec of 'find /Users/buildbot/maria-slave/mac-1012-bintar/build/mysql-test/var/mysqld.1/data//#rocksdb/OPTIONS* | sort -n | tail -1 | xargs -0 -I {} -t sh -c "sed -i '/hello=world/d' {}"' failed, error: 256, status: 1, errno: 35
Output from before failure:
FOUND 1 /RocksDB: Compatibility check against existing database options failed/ in my_restart.err
 
 
 
The result from queries just before the failure was:
select variable_name, variable_value from information_schema.global_variables where variable_name="rocksdb_ignore_unknown_options";
variable_name	variable_value
ROCKSDB_IGNORE_UNKNOWN_OPTIONS	ON
FOUND 1 /RocksDB: Compatibility check against existing database options failed/ in my_restart.err
 
worker[1] > Restart  - not started
 - skipping '/Users/buildbot/maria-slave/mac-1012-bintar/build/mysql-test/var/log/rocksdb.check_ignore_unknown_options/'
 
Retrying test rocksdb.check_ignore_unknown_options, attempt(2/3)...



 Comments   
Comment by Sergei Petrunia [ 2018-05-28 ]

input from @svoj

all commands are available on OS X, but some of them failing
like sed: 1: "1.txt": invalid command code .

oh sure, according to manual it can be invoked as following:
> sed [-Ealn] command [file ...]
> sed [-Ealn] [-e command] [-f command_file] [-i extension] [file ...]
that is if you use -i, you have to use -e
@spetrunia ^
like sed -i '' -e '/hello=world/d'

Comment by Sergei Petrunia [ 2018-05-28 ]

Also note: this test is already disabled for Windows because windows doesn't have xargs command.

Generated at Thu Feb 08 08:27:57 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.