Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] [1.2.0] The new storage path is optimized when the engine material is updated #2450

Closed
2 tasks done
CCweixiao opened this issue Jul 10, 2022 · 1 comment
Closed
2 tasks done
Labels
enhancement New feature or request

Comments

@CCweixiao
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Problem Description

wds.linkis.bml.hdfs.prefix
wds.linkis.bml.local.prefix
如果用户有修改了这两个配置,那么引擎物料文件需要更新时,获取到的旧物料文件路径可能不可用导致引擎物料无法完成更新。
If the user has modified these two configurations, when the engine material file needs to be updated, the obtained old material file path may not be available and the engine material cannot be updated.

Description

原有VersionServiceImpl类中的updateVersion方法内,生成新路径的逻辑是:
In the updateVersion method in the original VersionServiceImpl class, the logic for generating a new path is:

// create resource new path
String newVersion = params.get("newVersion").toString();
String path = versionDao.getResourcePath(resourceId) + "_" + newVersion;

对于生成后的path,如果bml prefix有改动,需要重新成功一个path。
For the generated path, if the bml prefix is changed, a new path needs to be succeeded.

Use case

No response

solutions

No response

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@CCweixiao CCweixiao added the enhancement New feature or request label Jul 10, 2022
@github-actions
Copy link

😊 Welcome to the Apache Linkis (incubating) community!!
We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context.
We will be here shortly.

If you are interested in contributing to our website project, please let us know!
You can check out our contributing guide on
👉 How to Participate in Project Contribution.

WeChat Group:

image
Mailing Lists:

name description Subscribe Unsubscribe archive
dev@linkis.apache.org community activity information subscribe unsubscribe archive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants