question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

smallfile not working on windows

See original GitHub issue

I tried the latest master branch on windows client. It returned me below error

adding time for Windows synchronization
Traceback (most recent call last):
  File "C:\Users\administrator.GCHILD\Desktop\smallfile-master\smallfile-master\
smallfile_cli.py", line 288, in <module>
    run_workload()
  File "C:\Users\administrator.GCHILD\Desktop\smallfile-master\smallfile-master\
smallfile_cli.py", line 279, in run_workload
    return multi_thread_workload.run_multi_thread_workload(params)
  File "C:\Users\administrator.GCHILD\Desktop\smallfile-master\smallfile-master\
multi_thread_workload.py", line 121, in run_multi_thread_workload
    sync_files.write_sync_file(sg, 'hi there')
  File "C:\Users\administrator.GCHILD\Desktop\smallfile-master\smallfile-master\
sync_files.py", line 16, in write_sync_file
    os.rename(fpath+notyet, fpath)
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process

But branch “smallfile-dir-share-wi-clnts” is working perfectly on single client.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sandrobonazzolacommented, Nov 10, 2022

unit testing on windows are passing with 71% coverage according to https://github.com/distributed-system-analysis/smallfile/actions/runs/3433776816


Coverage report: 71%

coverage.py v6.5.0, created at 2022-11-10 03:39 +0000

Module statements missing excluded coverage
drop_buffer_cache.py 35 15 0 57%
fallocate.py 37 17 0 54%
invoke_process.py 98 18 0 82%
parser_data_types.py 49 27 0 45%
smallfile.py 1450 339 0 77%
smf_test_params.py 98 69 0 30%
sync_files.py 47 21 0 55%
yaml_parser.py 146 57 0 61%
Total 1960 563 0 71%

coverage.py v6.5.0, created at 2022-11-10 03:39 +0000


I think this issue can be closed. @portante what do you think?

0reactions
portantecommented, Nov 10, 2022

Fixed by PR #39.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Copying small file - Stuck at 0% (Windows 2012 R2) Correct ...
We have files on a W2012R2 file server. Randomly certain folders cause write-errors with the software we are using.
Read more >
GitHub - distributed-system-analysis/smallfile
smallfile. A distributed workload generator for POSIX-like filesystems. New features: support for Kubernetes and benchmark-operator; YAML input format for ...
Read more >
Save Small - File Save Error - Rhino for Windows
Hi, I've just opened a small assembly of parts to be attached in a worksession and hit Save Small, but it throws up...
Read more >
Full Guide to Fix the “Dell SupportAssist Not Working” Issue
On This Page : Method 1: Rename the New-Dell-Logo-White-Small File; Method 2: Update to the Latest Windows System; Method ...
Read more >
Windows 10 Search Not Working? 6 Troubleshooting Tips To ...
Microsoft actually gives you a small file that helps you reset the Windows Search settings on your computer. All you need to do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found