Hello,
Currently, compression_zstd test fails when the server is compiled without ZStd:
rocksdb.compression_zstd w3 [ fail ]
Test ended at 2016-11-14 13:26:21
Server log is:
[Note] Global variable initial value (from config file) @@open_files_limit = 1024
...
2016-11-14 13:26:20 8734 [ERROR] RocksDB: Error opening instance: Invalid argument: Compression type ZSTD is not linked with the binary.
2016-11-14 13:26:20 8734 [ERROR] Plugin 'ROCKSDB' init function returned error.
2016-11-14 13:26:20 8734 [ERROR] Plugin 'ROCKSDB' registration as a STORAGE ENGINE failed.
2016-11-14 13:26:20 8734 [Warning] /home/psergey/dev-git/mysql-5.6-rocksdb-look2/sql/mysqld: unknown option '--loose-enable-performance-schema'
2016-11-14 13:26:20 8734 [Warning] /home/psergey/dev-git/mysql-5.6-rocksdb-look2/sql/mysqld: unknown variable 'loose-performance-schema-accounts-size=100'
2016-11-14 13:26:20 8734 [Warning] /home/psergey/dev-git/mysql-5.6-rocksdb-look2/sql/mysqld: unknown variable 'loose-performance-schema-digests-size=200'
...
2016-11-14 13:26:20 8734 [ERROR] Unknown/unsupported storage engine: rocksdb
2016-11-14 13:26:20 8734 [ERROR] Aborting
I think ZStandard is not a requirement for MyRocks to work (if it is, then CMake script should refuse to compile without ZStandard).
I didn't want the test to fail, so for MariaRocks I've made this change:
the patch
* Adds @@rocksdb_supported_compression_types variable which show what compression is compiled in
* Makes compression_zstd test skip itself when the server is not compiled with ZStandard.
Any opinions, should I submit this patch for MyRocks too?