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

temp file should be removed when sync interrupted. #4804

Open
zhoucheng361 opened this issue Apr 29, 2024 · 0 comments
Open

temp file should be removed when sync interrupted. #4804

zhoucheng361 opened this issue Apr 29, 2024 · 0 comments
Labels
priority/normal The default priority

Comments

@zhoucheng361
Copy link
Contributor

What happened:

root@bench-01:~/juicefs# ./juicefs sync /tmp/jfs/bigfile /tmp/jfs/sync
2024/04/29 18:45:43.743250 juicefs[3859900] <INFO>: Prometheus metrics listening on 127.0.0.1:36403 [mount.go:135]
2024/04/29 18:45:43.745302 juicefs[3859900] <INFO>: Syncing from file:///tmp/jfs/bigfile to file:///tmp/jfs/sync [sync.go:1300]
Scanned objects: 0/1 [--------------------------------------------------------------]  0.0/s ETA: 0s
Skipped objects: 0                            0.0/s                                       ⠦
  Skipped bytes: 0.0 b   (0 Bytes)            0.0 b/s                                     ⠦
Pending objects: 0                            0.0/s                                       ⠦
 Copied objects: 0                            0.0/s                                       ⠦
   Copied bytes: 1.9 GiB (1994391552 Bytes)   337.2 MiB/s                                 ⠦
 Failed objects: 0                            0.0/s                                       ⠦
^C
root@bench-01:~/juicefs# ls /tmp/jfs/ -a
.  ..  abc  .accesslog  big_dir  bigdir2  bigfile  .config  fsrand  no_dismount.txt  .stats  .sync.tmp5862692998825721621  .trash  vdb.1_1.dir  vdb.1_2.dir
root@bench-01:~/juicefs# ls -lh /tmp/jfs/.sync.tmp5862692998825721621
-rw-r--r-- 1 root root 1.9G Apr 29 18:45 /tmp/jfs/.sync.tmp5862692998825721621

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 Apr 29, 2024
@zhijian-pro zhijian-pro removed the kind/bug Something isn't working label Apr 30, 2024
@SandyXSD SandyXSD added the priority/normal The default priority label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/normal The default priority
Projects
None yet
Development

No branches or pull requests

3 participants