Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/22419 )
Change subject: IMPALA-13705: Environment specific errors in test_encryption_exprs ...................................................................... IMPALA-13705: Environment specific errors in test_encryption_exprs IMPALA-13039 added support for the aes_encrypt() and aes_decrypt() functions, where the user can choose the AES operation mode. Currently if the user chooses a mode that is not supported by the OpenSSL library at runtime, we fall back to a supported mode. There are two issues related to this: 1. If the mode chosen by the user requires a 16 byte encryption key but the fallback mode needs a 32 byte one, we will read past the provided buffer. 2. If the tests are run in an environment where some modes are not supported, we will get incorrect results. This can for example be the case with GCM. The first problem is solved by disabling falling back to a supported mode in case of aes_encrypt() and aes_decrypt(). If the mode is not supported, an error is returned instead. Note that this does not affect the case when the user explicitly specifies NULL as the operation mode - a default encoding will still be chosen in that case. The second problem is solved by dividing the test queries into separate ".test" files based on operation mode (and one for queries that are expected to fail). Each operation mode that is not always supported is tested first with a probing query and the corresponding tests are only run if the probing query succeeds, i.e. the mode is supported. Change-Id: I27146cda4fa41965de35821315738e5502d1b018 Reviewed-on: http://gerrit.cloudera.org:8080/22419 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M be/src/exprs/string-functions-ir.cc M be/src/exprs/string-functions.cc M be/src/util/openssl-util.cc D testdata/workloads/functional-query/queries/QueryTest/encryption_exprs.test A testdata/workloads/functional-query/queries/QueryTest/encryption_exprs_aes_128_ecb.test A testdata/workloads/functional-query/queries/QueryTest/encryption_exprs_aes_128_gcm.test A testdata/workloads/functional-query/queries/QueryTest/encryption_exprs_aes_256_cfb.test A testdata/workloads/functional-query/queries/QueryTest/encryption_exprs_aes_256_ctr.test A testdata/workloads/functional-query/queries/QueryTest/encryption_exprs_aes_256_ecb.test A testdata/workloads/functional-query/queries/QueryTest/encryption_exprs_aes_256_gcm.test A testdata/workloads/functional-query/queries/QueryTest/encryption_exprs_errors.test M tests/query_test/test_exprs.py 12 files changed, 535 insertions(+), 472 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/22419 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I27146cda4fa41965de35821315738e5502d1b018 Gerrit-Change-Number: 22419 Gerrit-PatchSet: 4 Gerrit-Owner: Daniel Becker <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Daniel Becker <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Pranav Lodha <[email protected]>
