Hello! On 11/30/18 2:29 PM, John Paul Adrian Glaubitz wrote:
On 11/30/18 1:08 PM, John Paul Adrian Glaubitz wrote:
The attached proof-of-concept patch fixes mariadb for me on Debian unstable on powerpc. I was not able to make it build on openSUSE yet.
An improved patch which works against MariaDB 10.3 but not 10.2.x which requires more work as 10.2 doesn't fully use C++11 atomics yet.
I have a patch now which fixes the build on ppc but the testsuite failes two tests [1]. Patch attached but also available in my home project. Test failure looks a bit suspicious: [ 2951s] --- /home/abuild/rpmbuild/BUILD/mariadb-10.2.19/mysql-test/suite/encryption/r/innodb-bad-key-change2.result 2018-11-12 16:32:39.000000000 +0000 [ 2951s] +++ /home/abuild/rpmbuild/BUILD/mariadb-10.2.19/mysql-test/suite/encryption/r/innodb-bad-key-change2.reject 2018-11-30 19:47:44.670000000 +0000 [ 2951s] @@ -10,7 +10,7 @@ [ 2951s] ERROR HY000: Got error 192 'Table encrypted but decryption failed. This could be because correct encryption management plugin is not loaded, used encryption key is not available or encryption method does not match.' from InnoDB [ 2951s] SHOW WARNINGS; [ 2951s] Level Code Message [ 2951s] -Warning 192 Table test/t1 in tablespace is encrypted but encryption service or used key_id is not available. Can't continue reading table. [ 2951s] +Warning 192 Table ??? in tablespace is encrypted but encryption service or used key_id is not available. Can't continue reading table. [ 2951s] Warning 192 Table t1 in file ./test/t1.ibd is encrypted but encryption service or used key_id is not available. Can't continue reading table. [ 2951s] Error 1296 Got error 192 'Table encrypted but decryption failed. This could be because correct encryption management plugin is not loaded, used encryption key is not available or encryption method does not match.' from InnoDB [ 2951s] ALTER TABLE t1 ENGINE=InnoDB; [ 2951s] @@ -38,7 +38,7 @@ [ 2951s] UNLOCK TABLES; [ 2951s] ALTER TABLE t1 DISCARD TABLESPACE; [ 2951s] Warnings: [ 2951s] -Warning 192 Table test/t1 in tablespace is encrypted but encryption service or used key_id is not available. Can't continue reading table. [ 2951s] +Warning 192 Table N?? in tablespace is encrypted but encryption service or used key_id is not available. Can't continue reading table. [ 2951s] Warning 1812 Tablespace is missing for table 'test/t1' [ 2951s] restore: t1 .ibd and .cfg files [ 2951s] ALTER TABLE t1 IMPORT TABLESPACE; [ 2951s] [ 2951s] mysqltest: Result length mismatch [ 2951s] [ 2951s] - saving '/home/abuild/rpmbuild/BUILD/mariadb-10.2.19/build/mysql-test/var/8/log/encryption.innodb-bad-key-change2-innodb/' to '/home/abuild/rpmbuild/BUILD/mariadb-10.2.19/build/mysql-test/var/log/encryption.innodb-bad-key-change2-innodb/' [ 2951s] ***Warnings generated in error logs during shutdown after running tests: encryption.innodb-bad-key-change2 [ 2951s] Adrian
[1] https://build.opensuse.org/project/show/home:glaubitz:branches:server:databa...