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

[1.1.19] mv hdfs file #346

Merged
merged 9 commits into from
Dec 28, 2023
Merged

[1.1.19] mv hdfs file #346

merged 9 commits into from
Dec 28, 2023

Conversation

v-kkhuang
Copy link

What is the purpose of the change

EngineConn-Core defines the the abstractions and interfaces of the EngineConn core functions.
The Engine Service in Linkis 0.x is refactored, EngineConn will handle the engine connection
and session management.

Related issues/PRs

Related issues: #590
Related pr:#591

Brief change log

  • Define the core abstraction and interfaces of the EngineConn Factory;
  • Define the core abstraction and interfaces of Executor Manager.

Checklist

  • I have read the Contributing Guidelines on pull requests.
  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the Linkis mailing list first)
  • If this is a code change: I have written unit tests to fully verify the new behavior.

@v-kkhuang v-kkhuang changed the title Dev 1.1.18 mv hdfs file [wip][1.1.18] mv hdfs file Nov 10, 2023
@v-kkhuang v-kkhuang changed the base branch from dev-1.1.17-webank to dev-1.1.18-webank November 23, 2023 09:43
@casionone casionone changed the base branch from dev-1.1.18-webank to dev-1.1.19-webank November 24, 2023 06:53
Comment on lines 1180 to 1182
@RequestParam(value = "filepath", required = false) String filePath,
@RequestParam(value = "isRecursion", required = false) Boolean isRecursion,
@RequestParam(value = "filePermission", required = false) String filePermission)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filepath 和 filePermission 的 required 与后面参数处理不一致

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

return Message.error( MessageFormat.format(PARAMETER_NOT_BLANK, filePermission));
}
if (null == isRecursion) {
isRecursion = true;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是不是没必要在代码里判断, @RequestParam 可以给默认值

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@v-kkhuang v-kkhuang changed the title [wip][1.1.18] mv hdfs file [1.1.18] mv hdfs file Nov 30, 2023
@v-kkhuang v-kkhuang changed the title [1.1.18] mv hdfs file [1.1.19] mv hdfs file Nov 30, 2023
Copy link

@aiceflower aiceflower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code review

Comment on lines 1193 to 1197
Matcher matcher = Pattern.compile("[0-7]{3}").matcher(filePermission);
if (matcher.matches()) {
return Message.error(MessageFormat.format(PERMISSION_FORMAT_ERROR, filePermission));
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a slight problem with the logic. Please fix it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@casionone casionone merged commit 1847b6e into dev-1.1.19-webank Dec 28, 2023
14 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants