[
https://issues.apache.org/jira/browse/KYLIN-3770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Temple Zhou updated KYLIN-3770:
-------------------------------
Description:
KYLIN-3401 had changed the zip compress tool, so the unzip dir structure is as
follows:
{code:bash}
unzip base_2019_01_15_17_45_28.zip
Archive: base_2019_01_15_17_45_28.zip
inflating: kylin_env
creating: cube/
inflating: cube/test_global_dict1.json
inflating: info
creating: table/
inflating: table/DEFAULT.TEST_GLOBAL_DICT1--tianpeng.json
creating: table_exd/
inflating: table_exd/DEFAULT.TEST_GLOBAL_DICT1--tianpeng.json
inflating: commit_SHA1
creating: cube_statistics/
creating: cube_statistics/test_global_dict1/
inflating:
cube_statistics/test_global_dict1/24e4967f-f635-440f-82e8-d73f7cbb2f2d.seq
inflating:
cube_statistics/test_global_dict1/adfb447f-4369-4dd8-9d76-94bc7f91d278.seq
creating: model_desc/
inflating: model_desc/test_global_dict1.json
inflating: UUID
creating: cube_desc/
inflating: cube_desc/test_global_dict1.json
{code}
However, before the changing of KYLIN-3401, the unzip dir structure is :
{code:bash}
unzip base_2019_01_15_18_18_26.zip
Archive: base_2019_01_15_18_18_26.zip
inflating: base_2019_01_15_18_18_26/kylin_env
inflating: base_2019_01_15_18_18_26/cube/test_global_dict1.json
inflating: base_2019_01_15_18_18_26/info
inflating:
base_2019_01_15_18_18_26/table/DEFAULT.TEST_GLOBAL_DICT1--tianpeng.json
inflating:
base_2019_01_15_18_18_26/table_exd/DEFAULT.TEST_GLOBAL_DICT1--tianpeng.json
inflating: base_2019_01_15_18_18_26/commit_SHA1
inflating:
base_2019_01_15_18_18_26/cube_statistics/test_global_dict1/24e4967f-f635-440f-82e8-d73f7cbb2f2d.seq
inflating:
base_2019_01_15_18_18_26/cube_statistics/test_global_dict1/adfb447f-4369-4dd8-9d76-94bc7f91d278.seq
inflating: base_2019_01_15_18_18_26/model_desc/test_global_dict1.json
inflating: base_2019_01_15_18_18_26/UUID
inflating: base_2019_01_15_18_18_26/cube_desc/test_global_dict1.json
{code}
This modification led to the CubeMetaIngester will always throw the
IllegalStateException, as the tempFolder.list().length will never be 1.
> ZipFileUtils is not compatible CubeMetaIngester
> -----------------------------------------------
>
> Key: KYLIN-3770
> URL: https://issues.apache.org/jira/browse/KYLIN-3770
> Project: Kylin
> Issue Type: Bug
> Components: Tools, Build and Test
> Affects Versions: v2.3.0, v2.4.0, v2.5.0, v2.6.0
> Reporter: Temple Zhou
> Assignee: Temple Zhou
> Priority: Major
>
> KYLIN-3401 had changed the zip compress tool, so the unzip dir structure is
> as follows:
> {code:bash}
> unzip base_2019_01_15_17_45_28.zip
> Archive: base_2019_01_15_17_45_28.zip
> inflating: kylin_env
> creating: cube/
> inflating: cube/test_global_dict1.json
> inflating: info
> creating: table/
> inflating: table/DEFAULT.TEST_GLOBAL_DICT1--tianpeng.json
> creating: table_exd/
> inflating: table_exd/DEFAULT.TEST_GLOBAL_DICT1--tianpeng.json
> inflating: commit_SHA1
> creating: cube_statistics/
> creating: cube_statistics/test_global_dict1/
> inflating:
> cube_statistics/test_global_dict1/24e4967f-f635-440f-82e8-d73f7cbb2f2d.seq
> inflating:
> cube_statistics/test_global_dict1/adfb447f-4369-4dd8-9d76-94bc7f91d278.seq
> creating: model_desc/
> inflating: model_desc/test_global_dict1.json
> inflating: UUID
> creating: cube_desc/
> inflating: cube_desc/test_global_dict1.json
> {code}
> However, before the changing of KYLIN-3401, the unzip dir structure is :
> {code:bash}
> unzip base_2019_01_15_18_18_26.zip
> Archive: base_2019_01_15_18_18_26.zip
> inflating: base_2019_01_15_18_18_26/kylin_env
> inflating: base_2019_01_15_18_18_26/cube/test_global_dict1.json
> inflating: base_2019_01_15_18_18_26/info
> inflating:
> base_2019_01_15_18_18_26/table/DEFAULT.TEST_GLOBAL_DICT1--tianpeng.json
> inflating:
> base_2019_01_15_18_18_26/table_exd/DEFAULT.TEST_GLOBAL_DICT1--tianpeng.json
> inflating: base_2019_01_15_18_18_26/commit_SHA1
> inflating:
> base_2019_01_15_18_18_26/cube_statistics/test_global_dict1/24e4967f-f635-440f-82e8-d73f7cbb2f2d.seq
>
> inflating:
> base_2019_01_15_18_18_26/cube_statistics/test_global_dict1/adfb447f-4369-4dd8-9d76-94bc7f91d278.seq
>
> inflating: base_2019_01_15_18_18_26/model_desc/test_global_dict1.json
> inflating: base_2019_01_15_18_18_26/UUID
> inflating: base_2019_01_15_18_18_26/cube_desc/test_global_dict1.json
> {code}
> This modification led to the CubeMetaIngester will always throw the
> IllegalStateException, as the tempFolder.list().length will never be 1.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)