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

Fix alluxio-fuse script for finding fuse pid #18465

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

lucyge2022
Copy link
Contributor

What changes are proposed in this pull request?

Remove additional white space in alluxio-fuse script

Why are the changes needed?

alluxio-fuse unmount <mnt_point> is unable to find the pid of AlluxioFuse process because the grep content isn't correct.

Does this PR introduce any user facing changes?

No

@@ -329,7 +329,7 @@ unmount_command() {
readonly force_kill

local fuse_pid
fuse_pid=$(ps ax -o pid,args | grep [A]lluxioFuse | grep " ${mount_point} " | awk '{print $1}')
fuse_pid=$(ps ax -o pid,args | grep [A]lluxioFuse | grep " ${mount_point}" | awk '{print $1}')
Copy link
Contributor

Choose a reason for hiding this comment

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

this may not help distringuish "/path1" from "/path1/path2"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually i know why this isn't working anymore, its bcos of the mnt table mgr change, the start up script transfers from
-m <mount_point> -u <ufs_root_path>
to
m <mount_point>
if mnt table mgr is enabled, hence not working, should find a way to correct this due to mnt table mgr change.
@jiacheliu3 @dbw9580 FYI

Copy link
Contributor Author

Choose a reason for hiding this comment

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

using word boundary for this

Copy link
Contributor

@LuQQiu LuQQiu left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks for fixing it!

@lucyge2022 lucyge2022 changed the title Remove additional white space in alluxio-fuse script Fix alluxio-fuse script for finding fuse pid Dec 14, 2023
@lucyge2022
Copy link
Contributor Author

alluxio-bot, merge this please.

@alluxio-bot
Copy link
Contributor

merge failed:
Merge refused because pull request does not have label start with type-

@lucyge2022 lucyge2022 added the type-bug This issue is about a bug label Dec 14, 2023
@lucyge2022
Copy link
Contributor Author

alluxio-bot, merge this please.

@alluxio-bot alluxio-bot merged commit 4e39eda into Alluxio:main Dec 14, 2023
14 checks passed
ssz1997 pushed a commit to ssz1997/alluxio that referenced this pull request Dec 15, 2023
### What changes are proposed in this pull request?

Remove additional white space in alluxio-fuse script

### Why are the changes needed?

alluxio-fuse unmount <mnt_point> is unable to find the pid of AlluxioFuse process because the grep content isn't correct.

### Does this PR introduce any user facing changes?

No

			pr-link: Alluxio#18465
			change-id: cid-3e70b0c8edbaa0ba50d744fd6155b0d494a243f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug This issue is about a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants