Comments (7)
I agree, they don't seem normal. I wonder what's using those files. Do you have an indexer (e.g. Windows search or google desktop search) running?
from git-tfs.
I just checked with procexplorer from SysInternals package. Files in C:\Users\idanilov\AppData\Local\Temp\2\ folder are opened only by git-tfs.exe processes.
[But there're many git-tfs.exe. Couldn't they conflict with each other? --- oops, that's not right. Looked to wrong place]
Btw, cloning is moving forward nevertheless. Slooowly. In the folder there're something about 10k files ~500 MB currently. Two bytes for distinguish temp files, huh? I wonder what will happen when there're more that 65536 :)
UPD: Procmon also shows that deletions are there and they are successfull:
Operation details:
Date & Time: 20.06.2011 23:02:24
Event Class: File System
Operation: SetDispositionInformationFile
Result: SUCCESS
Path: C:\Users\idanilov\AppData\Local\Temp\2\tmpBC04.tmp
TID: 2820
Duration: 0.0000059
Delete: True
Process info
Description: GitTfs
Company: SEP
Name: git-tfs.exe
Version: 0.11.0.0
Path: c:\Program Files (x86)\GitTfs\git-tfs.exe
Command Line: git-tfs clone -d http://tfs:8080/tfs $/Proj/ProjFolder/SRC
PID: 2228
Parent PID: 3604
Session ID: 2
User: domain\idanilov
Auth ID: 00000000:00c38135
Architecture: 32-bit
Virtualized: False
Integrity: High
Started: 20.06.2011 18:14:58
Ended: (Running)
from git-tfs.
All those files were left. I've just came to office and checked server. Clone is finished, but temp has 3 GB files in it. Deleted manually.
from git-tfs.
There should only be as many git-tfs.exe as you are running. If you ran git tfs clone http://x/y/z $/a & git tfs clone http://x/y/z $/a
, you'd have two git-tfs.exe processes, but they shouldn't have any temp file conflicts... the only conflict I would expect would be over lock files that git makes when messing with the index.
The thing about indexers is that they access each file very quickly, so it's really hard to detect them with processexplorer, but they have a knack for reading files while you're trying to delete them. I would have hoped that indexers would ignore Temp, but I don't write the indexers.
If git-tfs still has the files open when it tries to delete them, that would also prevent git-tfs from deleting the files, and that would be a bug.
And that is the practical implication of the error you saw: lots of temp files left around for you to manually delete.
from git-tfs.
No-no, there was just one git-tfs.exe - as I've pointed it was my error.
from git-tfs.
Matt, I've found the problem. Look at https://github.com/spraints/git-tfs/blob/master/GitTfs/Util/TemporaryFile.cs#L53
It is calling Dispose()
on base, but it should also call Dispose()
on _baseStream
.
I will fix it now and close the issue afterwards.
from git-tfs.
Cool. Thanks for tracking that down.
On Fri, Aug 5, 2011 at 7:03 PM, ivan-danilov
[email protected]
wrote:
Matt, I've found the problem. Look at https://github.com/spraints/git-tfs/blob/master/GitTfs/Util/TemporaryFile.cs#L53
It is callingDispose()
on base, but it should also callDispose()
on_baseStream
.I will fix it now and close the issue afterwards.
Reply to this email directly or view it on GitHub:
https://github.com/spraints/git-tfs/issues/55#issuecomment-1739777
from git-tfs.
Related Issues (20)
- Policy: Internal error in Work Items. Error loading the Work Items policy HOT 2
- How do I retrieve file history after clone? All I see is branch comments. HOT 7
- Adding work items to the export file doesn't work
- git-tfs not showing history showing error,"Please report this case to the git-tfs developers!" HOT 1
- New Release after v0.32.0 HOT 4
- Sudden authentication issue HOT 2
- Export map can't be created, if a TFS changeset shall be assigned to multiple commits
- Wrong branch cloned when several branch names starts in the same
- "git tfs" isn't a command, but "git-tfs" is a command HOT 1
- Error while cloning branches by using command. - git tfs clone https://TFSURL/tfs/defaultcollection/ $/ProjectName/Ressursstyring/src/next . --branches=all HOT 2
- How is v0.33.0 supporting Vs2022 as mentioned in the release notes? HOT 3
- Exclude folders from migration. HOT 2
- "GitTfs.Core.GitTfsException: Nothing to checkin!" on "git tfs rcheckin" HOT 5
- Cannot verify the migrated repository 'Unable to cast object of type ....' HOT 3
- Feature Request : Submit git-tfs to winget HOT 2
- .gitattributes ignored HOT 6
- I couldn't run them at first, but then managed to run Checkin Policies on VS2022 HOT 1
- Crash if no VS installed
- Case changing renames in TFS are ignored HOT 4
- How does --ignore-branches-regex work? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-tfs.