-
Notifications
You must be signed in to change notification settings - Fork 959
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
Fix the problem of using option to append Dataset public option #3454
Conversation
Hi @lgy1027. Thanks for your PR. I'm waiting for a fluid-cloudnative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: lgy1027 <[email protected]>
@@ -372,8 +372,8 @@ func (e *AlluxioEngine) genUFSMountOptions(m datav1alpha1.Mount, SharedOptions m | |||
|
|||
// initialize alluxio mount options | |||
mOptions := map[string]string{} | |||
if len(SharedOptions) > 0 { | |||
mOptions = SharedOptions | |||
for k, v := range SharedOptions { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add unit test for the fix? thanks very much!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added unit test: generating UFS mount options multiple times via functions genUFSMountOptions
in AlluxioEngine
Signed-off-by: ZhangXiaozheng <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov Report
@@ Coverage Diff @@
## master #3454 +/- ##
==========================================
+ Coverage 64.24% 64.28% +0.03%
==========================================
Files 442 442
Lines 26441 26452 +11
==========================================
+ Hits 16988 17005 +17
+ Misses 7444 7441 -3
+ Partials 2009 2006 -3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheyang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks very much for your contribution, @lgy1027 @zhang-x-z |
…d-cloudnative#3454) * Fix the problem of using option to append Dataset public option Signed-off-by: lgy1027 <[email protected]> * Add Unit Test for alluxio engine genUFSMountOptions Signed-off-by: ZhangXiaozheng <[email protected]> --------- Signed-off-by: lgy1027 <[email protected]> Signed-off-by: ZhangXiaozheng <[email protected]> Co-authored-by: liguoyu3564 <[email protected]> Co-authored-by: ZhangXiaozheng <[email protected]>
…d-cloudnative#3454) * Fix the problem of using option to append Dataset public option Signed-off-by: lgy1027 <[email protected]> * Add Unit Test for alluxio engine genUFSMountOptions Signed-off-by: ZhangXiaozheng <[email protected]> --------- Signed-off-by: lgy1027 <[email protected]> Signed-off-by: ZhangXiaozheng <[email protected]> Co-authored-by: liguoyu3564 <[email protected]> Co-authored-by: ZhangXiaozheng <[email protected]> Signed-off-by: cheyang <[email protected]>
… (#3459) * Fix the problem of using option to append Dataset public option (#3454) * Fix the problem of using option to append Dataset public option Signed-off-by: lgy1027 <[email protected]> * Add Unit Test for alluxio engine genUFSMountOptions Signed-off-by: ZhangXiaozheng <[email protected]> --------- Signed-off-by: lgy1027 <[email protected]> Signed-off-by: ZhangXiaozheng <[email protected]> Co-authored-by: liguoyu3564 <[email protected]> Co-authored-by: ZhangXiaozheng <[email protected]> Signed-off-by: cheyang <[email protected]> * Fix api issue for genUFSMountOptions, To #51793350 Signed-off-by: cheyang <[email protected]> --------- Signed-off-by: lgy1027 <[email protected]> Signed-off-by: ZhangXiaozheng <[email protected]> Signed-off-by: cheyang <[email protected]> Co-authored-by: li_max <[email protected]> Co-authored-by: liguoyu3564 <[email protected]> Co-authored-by: ZhangXiaozheng <[email protected]>
…d-cloudnative#3454) * Fix the problem of using option to append Dataset public option Signed-off-by: lgy1027 <[email protected]> * Add Unit Test for alluxio engine genUFSMountOptions Signed-off-by: ZhangXiaozheng <[email protected]> --------- Signed-off-by: lgy1027 <[email protected]> Signed-off-by: ZhangXiaozheng <[email protected]> Co-authored-by: liguoyu3564 <[email protected]> Co-authored-by: ZhangXiaozheng <[email protected]>
Fix error when using sharedOptions to mount multiple mounts