mirror of
https://github.com/apache/impala.git
synced 2025-12-19 09:58:28 -05:00
IMPALA-14595: Fix Ozone trash path after IMPALA-12893
IMPALA-12893 upgrade CDP_BUILD_NUMBER=71942734 upgrade Ozone version to 1.4.0.7.3.1.500-182. This newer Ozone version does not include WAREHOUSE_PREFIX anymore in its trash path. This patch fix the broken tests in test_ddl.py by updating the expected trash path. Testing: Run and pass metadata/test_ddl.py in Ozone environment. Change-Id: If1271a399d4eb82fed9b073b99d9a7b2c18a03b1 Reviewed-on: http://gerrit.cloudera.org:8080/23734 Reviewed-by: Michael Smith <michael.smith@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
4f3251e19a
commit
0f8f54de20
@@ -61,8 +61,8 @@ from tests.util.shell_util import dump_server_stacktraces
|
||||
|
||||
def get_trash_path(bucket, path):
|
||||
if IS_OZONE:
|
||||
return get_fs_path('/{0}/.Trash/{1}/Current{2}/{0}/{3}'.format(bucket,
|
||||
getpass.getuser(), WAREHOUSE_PREFIX, path))
|
||||
return get_fs_path('/{0}/.Trash/{1}/Current/{2}'.format(
|
||||
bucket, getpass.getuser(), path))
|
||||
return '/user/{0}/.Trash/Current/{1}/{2}'.format(getpass.getuser(), bucket, path)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user