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

mount process should exit on volume destroy and reformat. #4534

Closed
zhoucheng361 opened this issue Mar 18, 2024 · 0 comments · Fixed by #4555
Closed

mount process should exit on volume destroy and reformat. #4534

zhoucheng361 opened this issue Mar 18, 2024 · 0 comments · Fixed by #4555
Assignees
Labels
kind/bug Something isn't working

Comments

@zhoucheng361
Copy link
Contributor

What happened:
https://github.com/juicedata/juicefs/actions/runs/8180665344/job/22369132377
Test Code:

    for i in {1..3}; do 
        echo "round $i"
        ./juicefs format $META_URL volume-$i
        ./juicefs mount -d $META_URL /tmp/myjfs$i_$j --no-usage-report
        cd /tmp/myjfs$i_$j
        bash -c 'for k in {1..300}; do echo abc>$k; sleep 0.2; done' || true & 
        cd -
        sleep 3
        uuid=$(./juicefs status $META_URL | grep UUID | cut -d '"' -f 4) 
        ./juicefs destroy --force $META_URL $uuid
        ./juicefs format $META_URL new-volume-$i 
        sleep 15   
        ps -ef | grep juicefs
        pidof juicefs && exit 1
        uuid=$(./juicefs status $META_URL | grep UUID | cut -d '"' -f 4) 
        ./juicefs destroy --force $META_URL $uuid
    done

Log:

runner      4332       1  0 00:20 ?        00:00:00 ./juicefs mount -d redis://localhost/1 /tmp/myjfs --no-usage-report
runner      4470    4332  1 00:20 ?        00:00:00 /home/runner/work/juicefs/juicefs/juicefs mount -d redis://localhost/1 /tmp/myjfs --no-usage-report
runner      4559    4305  0 00:20 ?        00:00:00 grep juicefs
4470 4332

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?

Environment:

  • JuiceFS version (use juicefs --version) or Hadoop Java SDK version:
  • Cloud provider or hardware configuration running JuiceFS:
  • OS (e.g cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Object storage (cloud provider and region, or self maintained):
  • Metadata engine info (version, cloud provider managed or self maintained):
  • Network connectivity (JuiceFS to metadata engine, JuiceFS to object storage):
  • Others:
@zhoucheng361 zhoucheng361 added the kind/bug Something isn't working label Mar 18, 2024
@zhijian-pro zhijian-pro self-assigned this Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants