Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When users reset or restore the metadata, we should keep the UUID unchanged. Thus we can ensure the UUID as the only identifier of a metadata table. However, those operations that read but not alter metadata should be allowed to copy UUID from metadata.
To achieve this, we add the resource filed `/UUID` into the excludes list of copyR and resetR method in ResourceTool.java, which makes operations attending to copy or reset fields skip UUID. But for those read operations, for example, operations relating to backup, we provide a overriding copy method that permit getting UUID from the metastable.
Resolved. Please refer to:
commit 071f3b92caccf56ed70c15147da32a9ef2538bff
Author: auphyroc99 <454530524@qq.com>
Date: Thu Jun 22 17:10:58 2017 +0800
KYLIN-2676 Allow backup operation copying UUID
commit b6cdab0eefc81dca79ec8eea0740de566a6cdb7d
Author: auphyroc99 <454530524@qq.com>
Date: Thu Jun 22 17:10:58 2017 +0800
KYLIN-2676 Allow backup operation copying UUID
commit 66dc5418ce9860103a67398256ee11a7e428d4a0
Author: auphyroc99 <454530524@qq.com>
Date: Fri Jun 16 15:32:33 2017 +0800
KYLIN-2676 Add UUID into excludes list
commit 25861c3732ef5312debada5d7fba111df0ef7694
Author: auphyroc99 <454530524@qq.com>
Date: Fri Jun 16 15:32:33 2017 +0800
KYLIN-2676 Add UUID into excludes list